Skip to content

Commit

Permalink
use dangerous html to remove random html tags in excerpts
Browse files Browse the repository at this point in the history
  • Loading branch information
GraemeFulton committed Feb 29, 2024
1 parent 13a0dff commit 00054b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/v4/card/BigCard/BigBackgroundCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const BigBackgroundCard = ({ link,title, excerpt, image, tags, date, avatar, aut
</h2>
</Link>
<Link href={link??''}>
<p className="mt-3 text-gray-500 line-clamp-6">{excerpt}</p>
<div dangerouslySetInnerHTML={{__html:excerpt}} className="mt-3 text-gray-500 line-clamp-6"/>
</Link>

</div>
Expand Down

0 comments on commit 00054b2

Please sign in to comment.