Escape HTML entities for safe display.
Pure string implementation (no document.createElement) so it works in Node, React Native, and the browser. Used as the fallback when parsing throws — the raw markdown is shown escaped inside a
document.createElement
.
Escape HTML entities for safe display.
Pure string implementation (no
document.createElement) so it works in Node, React Native, and the browser. Used as the fallback when parsing throws — the raw markdown is shown escaped inside a