Skip to content

escapeHtml

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/api/src/changelog/changelog-markdown.ts

Tiny, dependency-free helpers for the changelog surfaces: HTML/XML escaping and a minimal markdown→HTML renderer good enough for release notes (headings, bold, inline code, links, bullet lists, paragraphs). Feeds and emails must never ship raw user/AI markdown as HTML without escaping first — everything below escapes BEFORE applying markup.

Signature

ts
function escapeHtml(s: string): string

Parameters

NameType
sstring

Returns: string

Was this page helpful?

Download as PDF