mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-28 05:33:14 +00:00
remove tag-sanitation from element.js
This commit is contained in:
parent
8345445b50
commit
68ba4d5bb1
@ -33,7 +33,9 @@ ElementWidget.prototype.render = function(parent,nextSibling) {
|
|||||||
this.tag = this.parseTreeNode.tag;
|
this.tag = this.parseTreeNode.tag;
|
||||||
this.tag = $tw.utils.makeTagNameSafe(this.tag, "safe" + this.tag);
|
this.tag = $tw.utils.makeTagNameSafe(this.tag, "safe" + this.tag);
|
||||||
// Restrict tag name to digits, letts and dashes
|
// Restrict tag name to digits, letts and dashes
|
||||||
this.tag = this.tag.replace(/[^0-9a-zA-Z\-]/mg,"");
|
|
||||||
|
// this.tag = this.tag.replace(/[^0-9a-zA-Z\-]/mg,"");
|
||||||
|
|
||||||
// Default to a span
|
// Default to a span
|
||||||
this.tag = this.tag || "span";
|
this.tag = this.tag || "span";
|
||||||
// Adjust headings by the current base level
|
// Adjust headings by the current base level
|
||||||
|
Loading…
x
Reference in New Issue
Block a user