Alex-D / Trumbowyg

A lightweight and amazing WYSIWYG JavaScript editor under 10kB
https://alex-d.github.io/Trumbowyg
MIT License
4k stars 614 forks source link

HTML entities being stripped #1403

Open DougSims opened 1 year ago

DougSims commented 1 year ago

When we input an html entity code directly as html, it is being removed. If we input © or © it is being removed. Same thing for ™ and ®

Description

The removeformatPasted option was left as default:false. We tried explicitly setting it to false, with the same result - entities stripped.

We tries using the tagsToKeep option, but that just yielded a javascript error.

How to reproduce?

enter © or © directly as html