isudatateam / datateam

Found unnecessary escape characters JS-0097
Anti-pattern
Minor
3 months ago3 months old
Unnecessary escape character: \&
  3
  4
  5function xmlescape(text){
  6        text = text.replace(/\&/g, "&amp;");  7        text = text.replace(/</g,  "&lt;");
  8        text = text.replace(/>/g,  "&gt;");
  9        text = text.replace(/'/g,  "&apos;");