set inner html for correct display
This commit is contained in:
parent
1503db9509
commit
3600166dc5
@ -2,7 +2,10 @@ import { Post } from "../types/index.ts";
|
|||||||
|
|
||||||
export const PostBody = function PostBody({ post }: PostBodyOpts) {
|
export const PostBody = function PostBody({ post }: PostBodyOpts) {
|
||||||
return (
|
return (
|
||||||
<div class="p-6 bg-[#313244] shadow-md text-[#f5e0dc]">{post.body}</div>
|
<div
|
||||||
|
class="p-6 bg-[#313244] shadow-md text-[#f5e0dc]"
|
||||||
|
dangerouslySetInnerHTML={{ __html: post.body }}
|
||||||
|
></div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user