]> gitweb.factorcode.org Git - factor.git/blob - extra/html/entities/entities-docs.factor
28cb0a7c4789d27cc74351f39899c19fda19ff45
[factor.git] / extra / html / entities / entities-docs.factor
1 USING: help.markup help.syntax strings ;
2 IN: html.entities
3
4 HELP: html-escape
5 { $values { "str" string } { "newstr" string } }
6 { $description "Replaces special characters " { $snippet "&" } ", " { $snippet "<" } ", " { $snippet ">" } ", " { $snippet "\"" } ", and " { $snippet "'" } " to HTML-safe sequences." } ;
7
8 HELP: html-unescape
9 { $values { "str" string } { "newstr" string } }
10 { $description "Convert all named and numeric character references (e.g. &gt;, &#62;, &x3e;) in the string " { $snippet "str" } " to the corresponding unicode characters using the rules defined by the HTML5 standard" } ;