mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Whoops, should be HTML encoding tiddler div fields
This commit is contained in:
parent
4a783d08c6
commit
a689abf0c1
@ -113,7 +113,7 @@ exports["application/x-tiddler-html-div"] = function(tiddler) {
|
|||||||
pullField("title");
|
pullField("title");
|
||||||
// Output the fields
|
// Output the fields
|
||||||
for(f=0; f<fields.length; f++) {
|
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(">\n<pre>");
|
||||||
result.push($tw.utils.htmlEncode(tiddler.fields.text));
|
result.push($tw.utils.htmlEncode(tiddler.fields.text));
|
||||||
|
Loading…
Reference in New Issue
Block a user