woofmark
woofmark copied to clipboard
Less-than-carets are removed when event is triggered
The less-than caret followed by text is removed when you e.g. set some text to bold in wysiwyg mode.
E.g: in the demo, write "<e", and change some other text to bold.
Is there any possibility to preserve these when typed in?
This issue comes from HTML special characters not being escaped properly in the WYSIWYG editor. Getting the textContent
or innerText
from the browser will give the unescaped version of the text. I've fixed the issue over at BlinkUX/woofmark and I'll try and see if I can't clean up a PR to merge upstream.