From: Marcin Koziej Date: Mon, 17 Dec 2012 14:01:53 +0000 (+0100) Subject: in xml2text, change & < to entities X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/8e8e4319077c2573dd3a4b72b6a11ae5041d1808?ds=inline in xml2text, change & < to entities --- diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js index 618dcd0e..a97322a5 100644 --- a/redakcja/static/js/wiki/xslt.js +++ b/redakcja/static/js/wiki/xslt.js @@ -366,7 +366,9 @@ HTMLSerializer.prototype._serializeElement = function(node) { }; self.result += ' ' + self._join(nsData.prefix, node.getAttribute('x-attr-name-'+this)); - self.result += '="'+node.getAttribute('x-attr-value-'+this) +'"'; + var value = node.getAttribute('x-attr-value-'+this); + value = value.replace(/&/g, '&').replace(/