Escape the three HTML-special characters (&, <, >) in text content.
&
<
>
Suitable for text nodes. For attribute values, use escapeAttr which additionally escapes quotation marks.
The raw text to escape.
The escaped string safe for embedding in HTML text content.
Escape the three HTML-special characters (
&,<,>) in text content.Suitable for text nodes. For attribute values, use escapeAttr which additionally escapes quotation marks.