X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/9c90640199aa690235670f01d842e11386ded0ac..713b8720aa2648a430b2d97cffe43e98e59937c4:/redakcja/static/js/wiki/xslt.js diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js index 618dcd0e..f71d167a 100644 --- a/redakcja/static/js/wiki/xslt.js +++ b/redakcja/static/js/wiki/xslt.js @@ -17,7 +17,7 @@ function withStylesheets(code_block, onError) if (!xml2htmlStylesheet) { $.blockUI({message: 'Ładowanie arkuszy stylów...'}); $.ajax({ - url: STATIC_URL + 'xsl/wl2html_client.xsl?20110520', + url: STATIC_URL + 'xsl/wl2html_client.xsl?20171106', dataType: 'xml', timeout: 10000, success: function(data) { @@ -366,7 +366,7 @@ 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) +'"'; + self.result += '="'+node.getAttribute('x-attr-value-'+this).replace(/&/g, '&').replace(/