_filter_htmlcorrector

Versions
6 – 7
_filter_htmlcorrector($text)

Scan input and make sure that all HTML tags are properly closed and nested.

▾ 2 functions call _filter_htmlcorrector()

drupal_html_to_text in includes/mail.inc
Transform an HTML string into plain text, preserving the structure of the markup. Useful for preparing the body of a node to be sent by e-mail.
text_summary in modules/field/modules/text/text.module
Generate a trimmed, formatted version of a text field value.

Code

modules/filter/filter.module, line 1134

<?php
function _filter_htmlcorrector($text) {
  return filter_dom_serialize(filter_dom_load($text));
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.