fix: display non-breaking space entity properly in post summary

This commit is contained in:
Abdurrahman Asad
2022-02-24 13:05:24 +05:00
parent 44e6d716f0
commit 06c9d967dd

View File

@@ -77,7 +77,8 @@ function PostLink({
/>
</div>
</div>
<div>{post.previewBody}</div>
{/* eslint-disable-next-line react/no-danger */}
<div dangerouslySetInnerHTML={{ __html: post.previewBody }} />
<PostFooter post={post} preview intl={intl} />
</div>
</div>