Open GoogleCodeExporter opened 9 years ago
The following unified diff will fix the problem.
I've also attached the diff as a file in case that is preferred.
@@ -684,8 +684,15 @@
break;
case 'string':
xml.push('<string>');
- xml.push(value.replace(/[<>&]/, function(ch){
-
+ xml.push(value.replace(/[<>&]/g, function(ch){
+ switch(ch){
+ case '<':
+ return '<';
+ case '>':
+ return '>';
+ case '&':
+ return '&';
+ }
})); //escape for XML!
xml.push('</string>');
break;
Original comment by K.S.H...@gmail.com
on 14 Feb 2011 at 5:28
Attachments:
Original issue reported on code.google.com by
gwub...@gmail.com
on 1 Oct 2010 at 1:37