@superbuilders/incept-renderer 0.1.5 → 0.1.7

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.
package/dist/index.js CHANGED
@@ -318,14 +318,7 @@ function serializeAttributes(attrs) {
318
318
  return parts.join(" ");
319
319
  }
320
320
  function escapeHtml(text) {
321
- const escapeMap = {
322
- "&": "&",
323
- "<": "&lt;",
324
- ">": "&gt;",
325
- '"': "&quot;",
326
- "'": "&#39;"
327
- };
328
- return text.replace(/[&<>"']/g, (char) => escapeMap[char] || char);
321
+ return text.replace(/</g, "&lt;").replace(/>/g, "&gt;");
329
322
  }
330
323
  function isMathMLElement(tagName) {
331
324
  const mathMLTags = [