Next.js-Blog-App icon indicating copy to clipboard operation
Next.js-Blog-App copied to clipboard

How content is rendered?

Open Chandraprakash-Darji opened this issue 1 year ago • 1 comments

I was going through the code. When you create the post you save the editor.getJSON() to the supabase.

But you directly rendering the JSON according to code

 <div className="relative mx-auto max-w-3xl border-slate-500/50 py-5">
      <div
            className="lg:prose-md prose"
           dangerouslySetInnerHTML={{ __html: post.content || "" }}
      />
</div>

How it is working?

Chandraprakash-Darji avatar Jul 03 '24 01:07 Chandraprakash-Darji