Browse Source

文本转义问题

star7th 7 years ago
parent
commit
56d11e086e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web_src/src/components/common/Editormd.vue

+ 1 - 1
web_src/src/components/common/Editormd.vue

@@ -135,7 +135,7 @@ export default {
 
     //插入数据到编辑器中。插入到光标处
     insertValue(insertContent){
-      this.instance.insertValue(insertContent);
+      this.instance.insertValue($("<div/>").html(insertContent).text());
     },
 
     getMarkdown(){