We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82245cf commit 0b50890Copy full SHA for 0b50890
resources/js/show/components/fields/text/TextRenderer.vue
@@ -44,4 +44,3 @@
44
<template>
45
<TemplateRenderer :template="formattedContent" :components="components" />
46
</template>
47
-
resources/js/utils/sanitize.ts
@@ -6,7 +6,9 @@ export function sanitize(html: string | null) {
6
ADD_TAGS: ['iframe'],
7
CUSTOM_ELEMENT_HANDLING: {
8
tagNameCheck: () => true,
9
- attributeNameCheck: () => true,
+ attributeNameCheck: (name) => {
10
+ return !name.match(/^(v-)|:|@|#/); // remove vue related attributes
11
+ },
12
},
13
})
14
: html;
0 commit comments