views:

53

answers:

1

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 instead of &.

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

+1  A: 

Use escapeHTML, part of Prototype's String library.

Dominic Rodger
Thanks Dominic!
Jackson