1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

Fixed entities decoding in plain text renderings

This commit is contained in:
Jeremy Ruston 2012-01-05 11:35:38 +00:00
parent 037e083007
commit 9961ddc8b4

View File

@ -226,7 +226,12 @@ WikiTextParseTree.prototype.compileSubTreePlain = function(tree) {
this.pushString(utils.htmlEncode(tree[t].value));
break;
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;
case "br":
case "img":