Skip to content

Commit 49e4deb

Browse files
committed
core-829: Handle content warning as HTML
[CORE-829]
1 parent 1e67deb commit 49e4deb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/pages/details/common/get-this-title-files/give-before-pdf/content-warning.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import Cookies from 'js-cookie';
3+
import RawHTML from '~/components/jsx-helpers/raw-html';
34

45
export default function ContentWarning({
56
link, track, close, onDownload, variant, warning, id
@@ -28,7 +29,7 @@ export default function ContentWarning({
2829
return (
2930
<div className="give-before-pdf">
3031
<div className="text-content">
31-
{warning}
32+
<RawHTML html={warning} />
3233
</div>
3334
<a
3435
href={link}

0 commit comments

Comments
 (0)