1 USING: help.markup help.syntax strings ;
5 { $values { "str" string } { "newstr" string } }
6 { $description "Replaces special characters " { $snippet "&" } ", " { $snippet "<" } ", " { $snippet ">" } ", " { $snippet "\"" } ", and " { $snippet "'" } " to HTML-safe sequences." }
8 { $example "USING: html.entities prettyprint ;"
9 "\"<foo>\" html-escape ."
14 { $values { "str" string } { "newstr" string } }
15 { $description "Convert all named and numeric character references (e.g. " { $snippet ">" } ", " { $snippet ">" } ", " { $snippet ">" } ") in the string " { $snippet "str" } " to the corresponding unicode characters using the rules defined by the HTML5 standard." }
17 { $example "USING: html.entities prettyprint ;"
18 "\"x < 2 && y > 5\" html-unescape ."
19 "\"x < 2 && y > 5\"" }