Skip to content

Commit 6ede728

Browse files
author
Illia Obukhau
committed
refactor(html-element-web): render html in design preview
1 parent 7105294 commit 6ede728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/html-element-web/src/HTMLElement.editorPreview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ export function preview(props: HTMLElementPreviewProps): ReactElement {
1818
<HTMLTag
1919
key={i}
2020
tagName={tag}
21+
unsafeHTML={props.tagContentRepeatHTML ? undefined : props.tagContentHTML}
2122
attributes={{
2223
className: props.className,
2324
style: props.styleObject
2425
}}
2526
>
2627
{props.tagContentRepeatHTML}
27-
{props.tagContentHTML}
2828
<props.tagContentRepeatContainer.renderer>
2929
<div />
3030
</props.tagContentRepeatContainer.renderer>

0 commit comments

Comments
 (0)