pull/429/head
Ryan Tharp 6 years ago committed by Beaudan Brown
parent a67e7fcfe1
commit 9bd6b7a364

@ -31,7 +31,10 @@ export class Linkify extends React.Component<Props> {
<div
dangerouslySetInnerHTML={{
__html: text
.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi, '')
.replace(
/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,
''
)
.replace(/<style\b[^<]*(?:(?!<\/style>)<[^<]*)*<\/style>/gi, ''),
}}
/>

Loading…
Cancel
Save