|
|
@@ -14,6 +14,7 @@ import {
|
|
|
mergeProps,
|
|
|
patchStyle,
|
|
|
shouldSetAsProp,
|
|
|
+ unsafeToTrustedHTML,
|
|
|
warn,
|
|
|
} from '@vue/runtime-dom'
|
|
|
import {
|
|
|
@@ -197,7 +198,7 @@ export function setElementText(
|
|
|
}
|
|
|
|
|
|
export function setHtml(el: TargetElement, value: any): void {
|
|
|
- value = value == null ? '' : value
|
|
|
+ value = value == null ? '' : unsafeToTrustedHTML(value)
|
|
|
if (el.$html !== value) {
|
|
|
el.innerHTML = el.$html = value
|
|
|
}
|