getConf('use_sure')) < 1) return false; // are you *really* sure? if (intval($this->getConf('use_really_sure')) < 1) return false; return true; } function html_sanitize ($html, $mode, $wrapper='code') { // invoke here an external sanitizer //$html= html_external_sanitizer($html); return $html; } function handle ($match, $state, $pos, Doku_Handler $handler) { switch ($state) { case DOKU_LEXER_ENTER : { return array($state, $match); } case DOKU_LEXER_UNMATCHED : { $match= $this->html_sanitize($match, 'code'); return array($state, $match); } case DOKU_LEXER_EXIT : { return array($state, $match); } case DOKU_LEXER_SPECIAL : return array($state, $match); } return array(); } function render ($mode, Doku_Renderer $renderer, $data) { } }; ?>