@superbuilders/incept-renderer 0.1.5 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -284,14 +284,7 @@ function serializeAttributes(attrs) {
284
284
  return parts.join(" ");
285
285
  }
286
286
  function escapeHtml(text) {
287
- const escapeMap = {
288
- "&": "&",
289
- "<": "&lt;",
290
- ">": "&gt;",
291
- '"': "&quot;",
292
- "'": "&#39;"
293
- };
294
- return text.replace(/[&<>"']/g, (char) => escapeMap[char] || char);
287
+ return text.replace(/</g, "&lt;").replace(/>/g, "&gt;");
295
288
  }
296
289
  function isMathMLElement(tagName) {
297
290
  const mathMLTags = [