Skip to content
Snippets Groups Projects
Commit 00148d75 authored by deuce's avatar deuce
Browse files

Don't second-guess the presence of "&" in strings for XML encoding.

parent 04b37644
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@ var item_type;
function encode_xml(str)
{
str=str.replace(/&/g, '&');
str=str.replace(/&/g, '&');
str=str.replace(/</g, '&lt;');
str=str.replace(/>/g, '&gt;');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment