I found out that quill editor strips out html tags if there is new line character inside.
Steps for Reproduction
I have HTML:
<p><span> </span>Test</p>
and
<p><span> \r\n</span>Test</p>
\r\n are non printable characters
Quill converts first html to:
---Test
where space is here shown as '-'.
And second one to:
Test
Which does not have any space before Test.
Platforms:
Browser is Edge version: 126.0.2592.61, OS is Windows 11
Version:
Quill.version = '2.0.2'
Workaround:
The workaround is to remove new line character to each so:
htmlString = htmlString.replaceAll(" \n", " ").replaceAll("\u00a0\n", "\u00a0")
I found out that quill editor strips out html tags if there is new line character inside.
Steps for Reproduction
I have HTML:
<p><span> </span>Test</p>
and<p><span> \r\n</span>Test</p>
\r\n are non printable charactersQuill converts first html to: ---Test where space is here shown as '-'.
And second one to: Test Which does not have any space before Test.
Platforms:
Browser is Edge version: 126.0.2592.61, OS is Windows 11
Version: Quill.version = '2.0.2'
Workaround: The workaround is to remove new line character to each so:
htmlString = htmlString.replaceAll(" \n", " ").replaceAll("\u00a0\n", "\u00a0")