Shall
be replaced with space (
).
ix.util.htmlDecode("<a href="https://foobar?rq_foo=bar&rq_bar=foo">encode me </a>");
// returns: "<a href="https://foobar?rq_foo=bar&rq_bar=foo">encode me </a>"
ix.util.htmlDecode("<h1>example</h1><br><p>my cool paragraph</p>", true);
// returns: "<h1>example</h1><br><p>my cool paragraph</p>"
Unescapes a HTML removing traces of offending characters that could be wrongfully interpreted as markup. The following characters are reserved in HTML and must be replaced with their corresponding HTML entities:
"
is replaced with"
&
is replaced with&
<
is replaced with<
>
is replaced with>