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");
Functions
decode_html
function
is_valid_entity_code
function
fn(c : i32) -> bool
Parameters
| Name | Type | Notes |
|---|---|---|
c | i32 |
Returns: bool
from_code_point
function