Browse Source

Merge branch 'beta' of https://git.cocorobo.cn/jack/PPT into beta

lsc 1 week ago
parent
commit
e023a1c58d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/Student/components/choiceQuestionDetailDialog.vue

+ 1 - 1
src/views/Student/components/choiceQuestionDetailDialog.vue

@@ -1254,13 +1254,13 @@ const processWorkContent = async (content: string, toolType: number): Promise<an
         parsed.forEach((item: any) => {
           if (item.messages && item.messages.length) {
             item.messages.forEach((item2: any) => {
+               item2.content = item2.content.replace(/&lt;/g, '<').replace(/&quot;/g, '"').replace(/&gt;/g, '>')
               // 如果已经包含html标签则不再渲染
               if (
                 !/^(\s*<[^>]+>.*<\/[^>]+>\s*|<[^>]+\/>\s*)$/s.test(
                   item2.content.trim()
                 )
               ) {
-                item2.content = item2.content.replace(/&lt;/g, '<').replace(/&quot;/g, '"').replace(/&gt;/g, '>')
                 item2.content = md.render(item2.content)
               }
             })