Skip to content

Commit

Permalink
Inital package commit - archive v2.1
Browse files Browse the repository at this point in the history
Fixed issue that resulted in multiple escape sequences for &
  • Loading branch information
EliJDonahue committed Oct 24, 2016
1 parent bc1d307 commit 450ac5c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ function escapeChars(currItem)
}
else
{
currChild.text = currChild.text.replace(/&/g,"&");
currChild.text = currChild.text.replace(/</g,"&amp;lt;");
currChild.text = currChild.text.replace(/>/g,"&amp;gt;");
currChild.text = currChild.text.replace(/&(?!(amp;))/g,"&amp;");
currChild.text = currChild.text.replace(/</g,"&lt;");
currChild.text = currChild.text.replace(/>/g,"&gt;");
currChild.text = currChild.text.replace(/"/g,"&quot;");
currChild.text = currChild.text.replace(/'/g,"&apos;");
}
Expand Down

0 comments on commit 450ac5c

Please sign in to comment.