I have to escape an arbitrary string and then assign to innerHTML.
But the string may has already contain character entities, like
var str1 = "A & B & C";
var str2 = "A > B > C";
var str3 = "A&qout;B&qout; C &qout;";
And I want to get
A & B & C
A > B > C
A"B" C "
The question is that how to escape "&" but do not escape "& in other character entities"?