From dfb49f811e7d56d0187915ef770196201ee4c888 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Wed, 28 Aug 2013 09:25:54 +0100 Subject: [PATCH] Fixed problem with importing tiddlers with double quotes, gt, lt etc Reported by @giffmex --- core/modules/deserializers.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/modules/deserializers.js b/core/modules/deserializers.js index 8b9b7dc63..97f0a0235 100644 --- a/core/modules/deserializers.js +++ b/core/modules/deserializers.js @@ -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;