std/html
Index
fn EscapeStr(s: str): str
fn UnescapeStr(s: str): str
EscapeStr
jule
fn EscapeStr(s: str): str
Escapes special characters like "<" to become "<". It escapes only five such characters: <, >, &, ' and ". UnescapeStr(EscapeStr(s)) == s always holds, but the converse isn't always true.
UnescapeStr
jule
fn UnescapeStr(s: str): str
Unescapes entities like "<" to become "<". It unescapes a larger range of entities than EscapeStr escapes. For example, "á" unescapes to "á", as does "á" and "á". UnescapeStr(EscapeStr(s)) == s always holds, but the converse isn't always true.