Module encoding/html

encoding/html

HTML entity decoding — named, decimal, and hexadecimal character references.

Decodes named (&), decimal (&), and hex (&) HTML character references. Uses Legacy mode — entities without trailing semicolon are also decoded.

Example

{ decode_html } :: import "std/encoding/html";

result := decode_html(`& < & &`);
assert((result == `& < & &`), "decoded entities");

Constants

decode_html constant (unknown)