fix(editor): Replace v-html with custom directive to sanitize html (#10804)

Co-authored-by: Tomi Turtiainen <10324676+tomi@users.noreply.github.com>
This commit is contained in:
Csaba Tuncsik
2024-09-18 08:49:41 +02:00
committed by GitHub
parent 989f69d1f4
commit 44e5fb9b06
49 changed files with 379 additions and 130 deletions

View File

@@ -46,13 +46,13 @@ const simplyText = computed(() => {
[$style.highlight]: highlight,
}"
>
<span data-test-id="parameter-input-hint" v-html="simplyText"></span>
<span data-test-id="parameter-input-hint" v-n8n-html="simplyText"></span>
</div>
<div
v-else
ref="hintTextRef"
:class="{ [$style.singleline]: singleLine, [$style.highlight]: highlight }"
v-html="sanitizeHtml(hint)"
v-n8n-html="sanitizeHtml(hint)"
></div>
</n8n-text>
</template>