fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c12614
)
Fixes #4207: Use required entites in serializing attributes.
author
Radek Czajka
<rczajka@rczajka.pl>
Thu, 20 May 2021 15:03:33 +0000
(17:03 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Thu, 20 May 2021 15:03:33 +0000
(17:03 +0200)
src/redakcja/static/js/wiki/xslt.js
patch
|
blob
|
history
diff --git
a/src/redakcja/static/js/wiki/xslt.js
b/src/redakcja/static/js/wiki/xslt.js
index
b1adc8e
..
5111ae7
100644
(file)
--- a/
src/redakcja/static/js/wiki/xslt.js
+++ b/
src/redakcja/static/js/wiki/xslt.js
@@
-352,7
+352,7
@@
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) +
'"';
+ self.result += '="'
+ node.getAttribute('x-attr-value-'+this).replace(/&/g, '&').replace(/"/g, '"') +
'"';
});
/* print new namespace declarations */
});
/* print new namespace declarations */