Skip to content

Commit

Permalink
fix(): allow deep links (#134)
Browse files Browse the repository at this point in the history
Co-authored-by: Nick Hellemans <[email protected]>
  • Loading branch information
nckhell and Nick Hellemans authored Mar 21, 2024
1 parent 7de8edb commit 096ccc5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@awell-health/ui-library",
"version": "0.1.49",
"version": "0.1.50",
"private": false,
"description": "UI components to integrate with Awell Health",
"repository": {
Expand Down
11 changes: 8 additions & 3 deletions src/atoms/richTextViewer/serializeHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,15 @@ export const generatePureHtml = (content: Nodes | string): string => {
isSlate ? serializeHtml(content) : (content as string),
{
ADD_TAGS: ['iframe'],
ADD_ATTR: ['target', 'allow', 'allowfullscreen', 'frameborder', 'scrolling'],
ADD_ATTR: [
'target',
'allow',
'allowfullscreen',
'frameborder',
'scrolling',
],
ALLOW_UNKNOWN_PROTOCOLS: true,
}
)
return purifiedMessage
}


0 comments on commit 096ccc5

Please sign in to comment.