How can I prevent Quill from converting script elements to paragraphs?

146 views Asked by At

I need to allow a user to paste script tags into a raw HTML editor using React Quill. I have the raw HTML editor working but any script elements get converted to paragraph elements (I'm assuming this is to prevent XSS and I tried to argue against allowing script tags). Is there any way to override this behavior? I'm very new to Quill and haven't worked on text editors before so the documentation is a bit overwhelming.

0

There are 0 answers