mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-09-03 16:48:53 +00:00
Do not escape double quotes in tiddler DIVs to save space (#5383)
* double quotes are no longer escaped in html bodies * changed tiddlyweb's html-div-tiddler; documentation French version still needs a translation though
This commit is contained in:
@@ -515,6 +515,15 @@ exports.htmlEncode = function(s) {
|
||||
}
|
||||
};
|
||||
|
||||
// Converts like htmlEncode, but forgets the double quote for brevity
|
||||
exports.htmlTextEncode = function(s) {
|
||||
if(s) {
|
||||
return s.toString().replace(/&/mg,"&").replace(/</mg,"<").replace(/>/mg,">");
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
};
|
||||
|
||||
// Converts all HTML entities to their character equivalents
|
||||
exports.entityDecode = function(s) {
|
||||
var converter = String.fromCodePoint || String.fromCharCode,
|
||||
|
||||
Reference in New Issue
Block a user