开发者

prototype - Replace & with &

I am working with Magento which uses the prototype javascript library. Unfortunately some of the client's data (being fed from point of sale system in to Magento) has & in the html instea开发者_如何学编程d of &.

Can anyone help with a method to change all instances of & in the html to & for validation purposes?


Use escapeHTML, part of Prototype's String library.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜