LiquidJS

教程标签过滤器演示API
Github
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacepluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp

escape

v1.9.1

把字符串中的 HTML 特殊字符转义,对不需要转义的字符串不会产生影响。

输入

{{ "Have you read 'James & the Giant Peach'?" | escape }}

输出

Have you read 'James & the Giant Peach'?

输入

{{ "Tetsuro Takara" | escape }}

输出

Tetsuro Takara
上次更新:2024-05-09 上一页下一页
目录
回到顶部
© 2024 Harttle
本文档通过 CC BY 4.0 授权。
    教程标签过滤器演示API
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedate_to_long_stringdate_to_rfc822date_to_stringdate_to_xmlschemadefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expinspectjoinjsonjsonifylastlstripmapminusmodulonewline_to_brnormalize_whitespacepluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimesto_integertruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp