Xo is experimental. The source is now public on GitHub, or try Xo in your browser.
Menu · html

Docs

std/html

On this page

Index

Functions

escape_string

fn escape_string(s: Str) -> Str

html.EscapeString: <, >, &, ' and " as &lt;, &gt;, &amp;, &#39; and &#34;.

Source: std/html.xo:9

unescape_string

fn unescape_string(s: Str) -> Str

html.UnescapeString: every entity reference unescaped (named, the legacy names without a semicolon such as &amp and &copy, decimal &#916; and hexadecimal &#x3bb; numeric references, the C1 control code points replaced as browsers do, invalid ones as U+FFFD); unescape_string(escape_string(s)) == s always, the converse not.

Source: std/html.xo:15

↑ index