1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Fixed problem with importing tiddlers with double quotes, gt, lt etc

Reported by @giffmex
This commit is contained in:
Jeremy Ruston 2013-08-28 09:25:54 +01:00
parent 0421f11fcc
commit dfb49f811e

View File

@ -126,8 +126,12 @@ function deserializeTiddlyWikiFile(text,storeAreaEnd,isTiddlyWiki5,fields) {
if(!tiddlerFields) {
break;
}
$tw.utils.each(tiddlerFields,function(value,name) {
if(typeof value === "string") {
tiddlerFields[name] = $tw.utils.htmlDecode(value);
}
});
if(tiddlerFields.text !== null) {
tiddlerFields.text = $tw.utils.htmlDecode(tiddlerFields.text);
results.push(tiddlerFields);
}
startPos = endPos;