Is there a way to use the CKEditor (4.4.x) built-in whitelist engine to sanitize HTML in JavaScript? I mean, let's say I already loaded CKEditor in my page and I have a string variable containing HTML, is there a way to invoke the CKEditor filters on the string to get a sanitized, whitelisted version?
Hmm, looks like it may be CKEDITOR.instances['myCKEInstance'].dataProcessor.toHtml(myHTMLstring)
.
http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With