Same name and namespace in other branches
- 6.x modules/filter/filter.module \_filter_htmlcorrector()
Implements callback_filter_process().
Scans the input and makes sure that HTML tags are properly closed.
Related topics
3 calls to _filter_htmlcorrector()
- drupal_html_to_text in includes/
mail.inc - Transforms an HTML string into plain text, preserving its structure.
- FilterUnitTestCase::testHtmlCorrectorFilter in modules/
filter/ filter.test - Tests the HTML corrector filter.
- text_summary in modules/
field/ modules/ text/ text.module - Generate a trimmed, formatted version of a text field value.
1 string reference to '_filter_htmlcorrector'
- filter_filter_info in modules/
filter/ filter.module - Implements hook_filter_info().
File
- modules/
filter/ filter.module, line 1692 - Framework for handling the filtering of content.
Code
function _filter_htmlcorrector($text) {
return filter_dom_serialize(filter_dom_load($text));
}