function _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 drupal/includes/mail.inc
Transforms an HTML string into plain text, preserving its structure.
FilterUnitTestCase::testHtmlCorrectorFilter in drupal/modules/filter/filter.test
Tests the HTML corrector filter.
text_summary in drupal/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/modules/filter/filter.module
Implements hook_filter_info().

File

drupal/modules/filter/filter.module, line 1687
Framework for handling the filtering of content.

Code

function _filter_htmlcorrector($text) {
  return filter_dom_serialize(filter_dom_load($text));
}