escape

功能說明
將字串中的 HTML 特殊字元(如 <, >, &, ", ')進行 HTML 實體編碼,以避免輸出為 HTML 元素。


語法

{{ 字串 | escape }}

範例

{{ "<strong>Hello</strong>" | escape }}
&lt;strong&gt;Hello&lt;/strong&gt;