Dashibase / lotion

An open-source Notion UI built with Vue 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove html tag and use a transformers

AxelBriche opened this issue · comments

Having html tags here is not good:

CleanShot 2022-07-29 at 14 38 39@2x

This data should be in a format that can be stored in a database.
And as a developer, I don't want store html tags inside my database, only markdown or cleaned data.

Instead of:

{
    type: "TEXT",
    details: {
      value: '<p>5. <strong>Bold</strong> and <em>italicize</em> using markdown e.g. *italic* or **bold**</p>'
    },
  }

I want provide:

{
    "type": "TEXT",
    "details": {
      "value": "5. **Bold** and *italicize* using markdown e.g. *italic* or **bold**"
    }
}

And transform it if needed for the editor.

This should be fixed with the latest version!