Skip to content

Commit

Permalink
Allow story body to use html tag iframe.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwu2018 committed Aug 17, 2023
1 parent b14835b commit 28c67b8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/ReactViews/Story/StoryPanel/StoryBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,15 @@ const StoryBody = ({
`}
medium
>
{parseCustomHtmlToReact(story.text, {
showExternalLinkWarning: true
})}
{parseCustomHtmlToReact(
story.text,
{ showExternalLinkWarning: true },
false,
{
ALLOWED_TAGS: ["iframe"],
ALLOWED_ATTR: ["src", "width", "height"]
}
)}
</Text>
</StoryContainer>
) : null}
Expand Down

0 comments on commit 28c67b8

Please sign in to comment.