renderLogEntry function presentation exported ✓ 100.0%
Last updated: 2026-03-04T23:21:38.426Z
Location
Metrics
LOC: 8
Complexity: 1
Params: 2
Coverage: 100.0% (1/1 lines, 1x executed)
Signature
renderLogEntry(entry: LogEntry, prefix = ""): : string
Summary
Renders a single log entry row.
Source Code
export function renderLogEntry(entry: LogEntry, prefix = ""): string {
return `
<div class="${prefix}log-entry ${prefix}log-${entry.type}">
<span class="${prefix}log-time">${entry.time}</span>
<span class="${prefix}log-text">${escapeHtml(entry.text)}</span>
</div>
`;
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| escapeHtml | calls |
No incoming dependencies.