From 67eacfed05b7340b44198bc9b14058f7723c4239 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 21 May 2021 19:24:08 +0800 Subject: [PATCH] fix: attribute value contains html tag the attribute may contain html attribute --- editormd.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/editormd.js b/editormd.js index c33c097a..33a630c9 100644 --- a/editormd.js +++ b/editormd.js @@ -3577,8 +3577,8 @@ markdownToC.push(toc); var headingHTML = ""; - - headingHTML += ""; + var href = $('' + text + '').text(); + headingHTML += ""; headingHTML += ""; headingHTML += (hasLinkReg) ? this.atLink(this.emoji(linkText)) : this.atLink(this.emoji(text)); headingHTML += ""; @@ -3704,8 +3704,8 @@ { html += ""; } - - html += "
  • " + text + "