Skip to content

Commit ff8a068

Browse files
fix(tooltip): tooltip组件xss问题修复 (DevCloudFE#1743)
Co-authored-by: GreatZP <greatzp@greatzp.cn>
1 parent 33feb4b commit ff8a068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/devui-vue/devui/tooltip/src/tooltip.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default defineComponent({
4343
onPositionChange={onPositionChange}
4444
onMouseenter={onMouseenterOverlay}
4545
onMouseleave={onMouseleave}>
46-
{slots.content ? slots.content?.() : <span innerHTML={content.value}></span>}
46+
{slots.content ? slots.content?.() : <span>{content.value}</span>}
4747
</FlexibleOverlay>
4848
</Transition>
4949
</Teleport>

0 commit comments

Comments
 (0)