Remove html tag and use a transformers
AxelBriche opened this issue · comments
AxelBriche commented
Having html tags here is not good:
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.
Lim Swee Kiat commented
This should be fixed with the latest version!