function _ckeditor_filter_process_elements in CKEditor Filter 7
Runs element against defined values, and blacklist
1 call to _ckeditor_filter_process_elements()
- _ckeditor_filter_process_recursive in ./
ckeditor_filter.module - Recursive call to process html block
File
- ./
ckeditor_filter.module, line 129 - Provides an input filter that allows site administrators configure which HTML elements, attributes and style properties are allowed.
Code
function _ckeditor_filter_process_elements(&$e, $elements, $special_cases) {
// test against <script>, <style>, ect
if (in_array($e->tag, $special_cases)) {
$e->outertext = '';
$e->attributes = array();
}
else {
if (!in_array($e->tag, $elements)) {
$e->tag = 'root';
$e->attributes = array();
}
}
}