feat: 使用 v-dompurify-html 替换 v-html
This commit is contained in:
@@ -255,9 +255,8 @@ const [Modal, modalApi] = useVbenModal({
|
||||
<div
|
||||
class="h-full rounded-md bg-gray-50 !p-0 text-gray-800 dark:bg-gray-800 dark:text-gray-200"
|
||||
>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<code
|
||||
v-html="codeMap.get(activeKey)"
|
||||
v-dompurify-html="codeMap.get(activeKey)"
|
||||
class="code-highlight"
|
||||
></code>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user