开发者

prototype - Replace & with &

开发者 https://www.devze.com 2022-12-19 05:02 出处:网络
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开发者_如

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

精彩评论

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