function _filter_htmlcorrector

_filter_htmlcorrector($text)

Implements callback_filter_process().

Scans the input and makes sure that HTML tags are properly closed.

Related topics

File

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));
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!filter!filter.module/function/_filter_htmlcorrector/7.x