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:
parent
0421f11fcc
commit
dfb49f811e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user