Ampersand Converter: & to &
This script was written to solve a problem I have with Amazon code. Because it is loaded with hard &'s or ampersands it is not W3C compliant. I like to try to keep my code compliant and this is a quick way to change the code from & to & before I paste it onto a webpage.
I have even added a safety feature. If an ampersand is already in the form of & it will not be converted. Thus, if you try to convert code that contains "&" you will not have to worry about a double ampersand in the code when it is not wanted.
|