将 HTML 中的特殊字符(例如 &、<> 等)转换为相应的转义序列。字符串中没有对应转义序列的字符将保持不变。
&
<>
str
{String}
returns
{{ escape str }}
{{ escape '<p>hello</p>' }}