function _filter_htmlcorrector
7.x filter.module | _filter_htmlcorrector($text) |
6.x filter.module | _filter_htmlcorrector($text) |
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 drupal-7.x/
includes/ mail.inc - Transforms an HTML string into plain text, preserving its structure.
- FilterUnitTestCase::testHtmlCorrectorFilter in drupal-7.x/
modules/ filter/ filter.test - Tests the HTML corrector filter.
- text_summary in drupal-7.x/
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 drupal-7.x/
modules/ filter/ filter.module - Implements hook_filter_info().
File
- drupal-7.x/
modules/ filter/ filter.module, line 1675 - Framework for handling the filtering of content.
Code
function _filter_htmlcorrector($text) {
return filter_dom_serialize(filter_dom_load($text));
}