]> gitweb.factorcode.org Git - factor.git/blob - extra/html/entities/entities-docs.factor
html.entities: fix minor doc error.
[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. " { $snippet "&gt;" } ", " { $snippet "&#62;" } ", " { $snippet "&#x3e;" } ") in the string " { $snippet "str" } " to the corresponding unicode characters using the rules defined by the HTML5 standard." } ;