escape转义字符串

escape转义字符串

ZKEASOFT August 28, 2018


escape

escape用于转义字符串,从而使该字符串可以在URL中使用

输入

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

输出

Have you read 'James & the Giant Peach'?

输入

{{ "Tetsuro Takara" | escape }}

输出

Tetsuro Takara

微信公众号