transform.HTMLEscape
Syntax
transform.HTMLEscape INPUT
Returns
string
Alias
htmlEscape
transform.HTMLEscape 函数通过替换五个特殊字符为 HTML 实体 来进行转义:
&→&<→<>→>'→'"→"
例如:
{{ htmlEscape "Lilo & Stitch" }} → Lilo & Stitch
{{ htmlEscape "7 > 6" }} → 7 > 6