function xml2html(options) {
withStylesheets(function() {
- var xml = options.xml.replace(/\/(\s+)/g, '<br />$1');
+ var xml = options.xml.replace(/\/(\s+)/g, '<_n />$1');
xml = xml.replace(/([^a-zA-Z0-9ąćęłńóśźżĄĆĘŁŃÓŚŹŻ\s<>«»\\*_!,:;?&%."'=#()\/-]+)/g, '<alien>$1</alien>');
var parser = new DOMParser();
var serializer = new XMLSerializer();
source.text('');
options.error(error.text(), source_text);
} else {
- let galleryUrl = new URL(
- options.base,
- window.location.href
- );
$("img", $(doc.childNodes)).each(function() {
$(this).attr(
'src',
- new URL(
- $(this).attr('src'),
- galleryUrl
- )
+ $(this).attr('src'),
);
})