Use the CKEditor built-in whitelist engine to sanitize HTML in JavaScript

Viewed 1376

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?

1 Answers
Related