fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
retry on remove
[redakcja.git]
/
redakcja
/
static
/
js
/
wiki
/
xslt.js
diff --git
a/redakcja/static/js/wiki/xslt.js
b/redakcja/static/js/wiki/xslt.js
index
618dcd0
..
a97322a
100644
(file)
--- 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 += ' ' + 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(/</g, '<');
+ self.result += '="'+ value +'"';
});
/* print new namespace declarations */
});
/* print new namespace declarations */