wdpr
    Preparing search index...
    • Escape the three HTML-special characters (&, <, >) in text content.

      Suitable for text nodes. For attribute values, use escapeAttr which additionally escapes quotation marks.

      Parameters

      • text: string

        The raw text to escape.

      Returns string

      The escaped string safe for embedding in HTML text content.