1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-24 22:33:16 +00:00

Text-slicer: Switch to loose mode

So that non-XML entities work.
This commit is contained in:
Jermolene 2018-01-04 16:02:58 +00:00
parent a7a3748bca
commit 50950d8143

View File

@ -66,8 +66,9 @@ function Slicer(options) {
this.parentStack.push({chunk: 0, actions: this.getMatchingSlicerRuleActions("(document)")});
// Set up the parser
var sax = require("$:/plugins/tiddlywiki/sax/sax.js");
this.sax = sax.parser(true,{
xmlns: true
this.sax = sax.parser(false,{
xmlns: true,
lowercase: true
});
this.sax.onerror = this.onError.bind(this);
this.sax.onopennamespace = this.onOpenNamespace.bind(this);