From 08ac3f0d191e2cb759ba6e2b5ceaa730d1a26717 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 25 Jan 2011 15:15:31 +0100 Subject: [PATCH] fix --- redakcja/static/js/wiki/xslt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} -- 2.20.1