react-quill removing p and div tags from within the text

167 views Asked by At

When loading a text in the editor react-quill is removing the p and div tags from within the text. The ones in beginning and end of the text remains.

The text -

<div><strong>Lorem Ipsum</strong></div><div>Another paragraph.</div><div>Yet Another One.</div>

Shows up as -

<div><strong>Lorem Ipsum</strong>Another paragraph.Yet Another One.</div>
0

There are 0 answers