2 class No_Iframes extends Plugin {
7 "Remove embedded iframes",
11 function init($host) {
14 $host->add_hook($host::HOOK_SANITIZE, $this);
17 function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes) {
19 $allowed_elements = array_diff($allowed_elements, array("iframe"));
21 return array($doc, $allowed_elements, $disallowed_attributes);
24 function api_version() {