Find and replace an ampersand...
807605Aug 30 2007 — edited Aug 31 2007I am encoding special characters in my HTML
i.e.
replacing & with &
and � with £ etc.
I have managed to find and replace all of the using
String.replaceAll('xx'xx');
However how do i do the ampersand? If i replace all instances of & with & its going to match £ and other & How do i get it to only change & only and none of the html entities that have already been replaced previously?