react-native-rich-editor
react-native-rich-editor copied to clipboard
Fix nested tags when using p separator
When using
separators, <ul>
and <ol>
elements are currently nested inside <p>
's. However, this is incorrect HTML syntax and may break when using certain editors.
With this, after adding each ul/ol, a correction is made so nested tags are taken out to the parent. Code taken from https://developpaper.com/implementation-of-rich-text-editor-with-javascript/