Skip to content

Commit

Permalink
Set innerHTML for details content
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Nov 10, 2023
1 parent 4c49d0a commit e7f590f
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/details.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,7 @@ export default function DetailsPageUI({ content }: Props) {
</dl>
</header>

{content.description
.split('\r\n')
.filter((line: string) => line.trim() !== '')
.map((line: string, index: number) => {
return (
<p key={index} className="py-4">
{line}
</p>
);
})}
<div dangerouslySetInnerHTML={{ __html: content.description }} />
</article>
);
}

0 comments on commit e7f590f

Please sign in to comment.