开发者

Removing double quotes in Smarty PHP

开发者 https://www.devze.com 2022-12-24 18:47 出处:网络
Im attempting to remove double quotes pass开发者_JS百科ed in a request parameter string. I know Smarty has a escape:\'html\' function however Id rather just remove all \".

Im attempting to remove double quotes pass开发者_JS百科ed in a request parameter string. I know Smarty has a escape:'html' function however Id rather just remove all ".

Thanks.


According to the manual, there's a replace modifier:

{$yourValue|replace:'"':''}
0

精彩评论

暂无评论...
验证码 换一张
取 消