From 8e8e4319077c2573dd3a4b72b6a11ae5041d1808 Mon Sep 17 00:00:00 2001 From: Marcin Koziej Date: Mon, 17 Dec 2012 15:01:53 +0100 Subject: [PATCH] in xml2text, change & < to entities --- redakcja/static/js/wiki/xslt.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(/