1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 23:40:45 +00:00

Whoops, should be HTML encoding tiddler div fields

This commit is contained in:
Jeremy Ruston 2012-07-16 12:57:19 +01:00
parent 4a783d08c6
commit a689abf0c1

View File

@ -113,7 +113,7 @@ exports["application/x-tiddler-html-div"] = function(tiddler) {
pullField("title");
// Output the fields
for(f=0; f<fields.length; f++) {
result.push(" " + fields[f] + "=\"" + tiddler.getFieldString(fields[f]) + "\"");
result.push(" " + fields[f] + "=\"" + $tw.utils.htmlEncode(tiddler.getFieldString(fields[f])) + "\"");
}
result.push(">\n<pre>");
result.push($tw.utils.htmlEncode(tiddler.fields.text));