html

CUE v0.18.0

Functions

Escape

cue
Escape: func(s: string) -> string

Escape escapes special characters like "<" to become "&lt;". It escapes only five such characters: <, >, &, ' and ". Unescape(Escape(s)) == s always holds, but the converse isn't always true.

Unescape

cue
Unescape: func(s: string) -> string

Unescape unescapes entities like "&lt;" to become "<". It unescapes a larger range of entities than Escape escapes. For example, "&aacute;" unescapes to "á", as does "&#225;" and "&#xE1;". Unescape(Escape(s)) == s always holds, but the converse isn't always true.

Install CUE