Import std.text.encoding
Html
struct
Public Struct Html
HTML's escaping, for text put in a page or an attribute's value.
Examples
Expect(Html.Escape("<b>\"Fish\" & chips") == "<b>"Fish" & chips")
Expect(Html.Unescape("<3 & ☺") == "<3 & ☺")std/text/encoding.fb, line 444
-
textwith "&", "<", ">", '"', and "'" as entities, so HTML shows it as it is. -
textwith its entities as the characters they stand for: "&", "<", ">", """, "'", " ", and numbers like "é" and "é", one that isn't a Unicode scalar value as U+FFFD. Another "&" stays as it is.
Report an issue with this page or with FutureBlitz on GitHub.