I have a string that looks like this:
<a href=\"test\" />
I want to to replace the /" to ", so that it looks like this <a href="test" />.
Therefore I am using this piece of code:
content = content.replaceAll("\\\"", "\"");
For some reason it doesn’t find \". So it isn’t being replaced.
Try this code:
string.replaceAll(Pattern.quote("\\\""), "\"");