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

@@ -1350,7 +1350,7 @@ export default defineComponent({
:class="$style.hintCallout"
:theme="hint.type || 'info'"
>
<n8n-text size="small" v-html="hint.message"></n8n-text>
<n8n-text size="small" v-n8n-html="hint.message"></n8n-text>
</n8n-callout>
<div
@@ -1509,7 +1509,7 @@ export default defineComponent({
<n8n-text :bold="true" color="text-dark" size="large">{{ tooMuchDataTitle }}</n8n-text>
<n8n-text align="center" tag="div"
><span
v-html="
v-n8n-html="
$locale.baseText('ndv.output.tooMuchData.message', {
interpolate: { size: dataSizeInMB },
})