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.
精彩评论