diff --git a/public/static/editor.md/editormd.amd.js b/public/static/editor.md/editormd.amd.js
index daf4994..2eef2e2 100644
--- a/public/static/editor.md/editormd.amd.js
+++ b/public/static/editor.md/editormd.amd.js
@@ -3901,6 +3901,13 @@
if (typeof attrs !== "undefined")
{
+ // 将 html 标签的 attr value 中存在的 <> 进行转义
+ // 示例 替换为
+ html = html.replace(/(\w+)="([^"]*)"/g, (match, key, value) => {
+ const escapedValue = value.replace(//g, '>');
+ return `${key}="${escapedValue}"`;
+ });
+
var htmlTagRegex = /\<(\w+)\s*([^\>]*)\>([^\>]*)\<\/(\w+)\>/ig;
if (attrs === "*")
diff --git a/public/static/editor.md/editormd.js b/public/static/editor.md/editormd.js
index c33c097..953eec8 100644
--- a/public/static/editor.md/editormd.js
+++ b/public/static/editor.md/editormd.js
@@ -3832,6 +3832,13 @@
if (typeof attrs !== "undefined")
{
+ // 将 html 标签的 attr value 中存在的 <> 进行转义
+ // 示例 替换为
+ html = html.replace(/(\w+)="([^"]*)"/g, (match, key, value) => {
+ const escapedValue = value.replace(//g, '>');
+ return `${key}="${escapedValue}"`;
+ });
+
var htmlTagRegex = /\<(\w+)\s*([^\>]*)\>([^\>]*)\<\/(\w+)\>/ig;
if (attrs === "*")
diff --git a/public/static/editor.md/src/editormd.js b/public/static/editor.md/src/editormd.js
index bf4f7f1..f669a78 100644
--- a/public/static/editor.md/src/editormd.js
+++ b/public/static/editor.md/src/editormd.js
@@ -3822,6 +3822,13 @@
if (typeof attrs !== "undefined")
{
+ // 将 html 标签的 attr value 中存在的 <> 进行转义
+ // 示例 替换为
+ html = html.replace(/(\w+)="([^"]*)"/g, (match, key, value) => {
+ const escapedValue = value.replace(//g, '>');
+ return `${key}="${escapedValue}"`;
+ });
+
var htmlTagRegex = /\<(\w+)\s*([^\>]*)\>([^\>]*)\<\/(\w+)\>/ig;
if (attrs === "*")