From: Radek Czajka Date: Tue, 25 Jan 2011 14:15:31 +0000 (+0100) Subject: fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/08ac3f0d191e2cb759ba6e2b5ceaa730d1a26717?ds=inline fix --- diff --git a/redakcja/static/js/wiki/xslt.js b/redakcja/static/js/wiki/xslt.js index 9956d90b..c7b846b5 100644 --- a/redakcja/static/js/wiki/xslt.js +++ b/redakcja/static/js/wiki/xslt.js @@ -61,7 +61,7 @@ function withThemes(code_block, onError) function xml2html(options) { withStylesheets(function() { var xml = options.xml.replace(/\/(\s+)/g, '
$1'); - xml = xml.replace(/([^a-zA-Z0-9ąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s<>«»\\*_!,:;?."'=#()\/-]+)/g, '$1'); + xml = xml.replace(/([^a-zA-Z0-9ąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s<>«»\\*_!,:;?%."'=#()\/-]+)/g, '$1'); var parser = new DOMParser(); var serializer = new XMLSerializer(); var doc = parser.parseFromString(xml, 'text/xml'); @@ -385,4 +385,4 @@ function html2text(params) { } catch(e) { params.error("Nie udało się zserializować tekstu:" + e) } -} \ No newline at end of file +}