react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

Fix nested tags when using p separator

Open cristianoccazinsp opened this issue 2 years ago • 0 comments

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/

cristianoccazinsp avatar Apr 29 '22 01:04 cristianoccazinsp