mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-29 15:30:47 +00:00
Fixed entities decoding in plain text renderings
This commit is contained in:
parent
037e083007
commit
9961ddc8b4
@ -226,7 +226,12 @@ WikiTextParseTree.prototype.compileSubTreePlain = function(tree) {
|
|||||||
this.pushString(utils.htmlEncode(tree[t].value));
|
this.pushString(utils.htmlEncode(tree[t].value));
|
||||||
break;
|
break;
|
||||||
case "entity":
|
case "entity":
|
||||||
this.pushString(tree[t].value);
|
var c = utils.entityDecode(tree[t].value);
|
||||||
|
if(c) {
|
||||||
|
this.pushString(c);
|
||||||
|
} else {
|
||||||
|
this.pushString(tree[t].value);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "br":
|
case "br":
|
||||||
case "img":
|
case "img":
|
||||||
|
Loading…
Reference in New Issue
Block a user