Decode the fixed HTML entity set emitted by escapeHTML.
Decoding uses one pass and preserves unrecognized entities. This is not a general HTML entity decoder, and the result may contain active HTML markup.
Usage:
import { unescapeHTML } from "mazey";const ret = unescapeHTML("<div>hello world</div>");console.log(ret); Copy
import { unescapeHTML } from "mazey";const ret = unescapeHTML("<div>hello world</div>");console.log(ret);
Output:
<div>hello world</div> Copy
<div>hello world</div>
The string containing escaped characters.
The decoded string.
Decode the fixed HTML entity set emitted by escapeHTML.
Decoding uses one pass and preserves unrecognized entities. This is not a general HTML entity decoder, and the result may contain active HTML markup.
Usage:
Output: