Skip to content

How content is rendered? #13

Open
Open
@Chandraprakash-Darji

Description

@Chandraprakash-Darji

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions