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
1 changed files with 6 additions and 1 deletions

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":