Skip to content

Commit 0cb669c

Browse files
authored
fix: insert video microdata by dangerouslySetInnerHTML (#1088)
* fix(Media): fix video microdata
1 parent b10e79f commit 0cb669c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Media/Media.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ export const Media = (props: MediaAllProps) => {
173173
});
174174

175175
return video || youtube || videoIframe ? (
176-
<script type="application/ld+json">{json}</script>
176+
<script type="application/ld+json" dangerouslySetInnerHTML={{__html: json}} />
177177
) : null;
178178
}, [microdata?.contentUpdatedDate, previewImg, video, videoIframe, videoMicrodata, youtube]);
179179

0 commit comments

Comments
 (0)