dabblet
dabblet copied to clipboard
Can't paste html entities
The editor converts html entities to the corresponding reserved characters, so when I paste:
<span class="scIncluded"><hello></span>
What I get in the editor is the < and > characters, which makes the html output broken:
<span class="scIncluded"><hello></span>
This can be fixed by:
text = text.replace(/&/g, "&");
before inserting html from clipboard.