From 68ba4d5bb1b1a4fdfbb44ac49da716aabb5814b6 Mon Sep 17 00:00:00 2001 From: pmario Date: Sun, 9 Jun 2024 10:42:56 +0200 Subject: [PATCH] remove tag-sanitation from element.js --- core/modules/widgets/element.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/modules/widgets/element.js b/core/modules/widgets/element.js index 0dd52eb30..534442759 100755 --- a/core/modules/widgets/element.js +++ b/core/modules/widgets/element.js @@ -33,7 +33,9 @@ ElementWidget.prototype.render = function(parent,nextSibling) { this.tag = this.parseTreeNode.tag; this.tag = $tw.utils.makeTagNameSafe(this.tag, "safe" + this.tag); // 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 this.tag = this.tag || "span"; // Adjust headings by the current base level