Member Junction
    Preparing search index...
    • 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

      .

      Parameters

      • text: string

      Returns string