Helper methods to escape and unescape HTML entities in a string.
Added: R15
let s = "<One> & Two"; let escaped = HTML.escape(s); // "<One> & Two" let unescaped = HTML.unescape(encoded); // "<One> & Two"
Escape HTML entities in a string to be HTML safe.
the string to escape
Unescape HTML entities in a string.
the string to unescape
Generated using TypeDoc
HTML
Helper methods to escape and unescape HTML entities in a string.
Added: R15
Examples
let s = "<One> & Two"; let escaped = HTML.escape(s); // "<One> & Two" let unescaped = HTML.unescape(encoded); // "<One> & Two"