mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user