X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9d566b4741eb66bf09b5c7d213aa8541886e100a..8f049b683ba43e70018b1bd860f6c082b171ead5:/src/redakcja/static/js/wiki/xslt.js
diff --git a/src/redakcja/static/js/wiki/xslt.js b/src/redakcja/static/js/wiki/xslt.js
index 99af3c35..922a3ba2 100644
--- a/src/redakcja/static/js/wiki/xslt.js
+++ b/src/redakcja/static/js/wiki/xslt.js
@@ -36,7 +36,7 @@ function withStylesheets(code_block, onError)
function xml2html(options) {
withStylesheets(function() {
- var xml = options.xml.replace(/\/(\s+)/g, '
$1');
+ var xml = options.xml.replace(/\/(\s+)/g, '<_n />$1');
xml = xml.replace(/([^a-zA-Z0-9Ä
ÄÄÅÅóÅźżÄÄÄÅÅÃÅŹŻ\s<>«»\\*_!,:;?&%."'=#()\/-]+)/g, '$1');
var parser = new DOMParser();
var serializer = new XMLSerializer();