1 drupal.inc drupal_html_to_text($string, $allowed_tags = NULL)

Transforms an HTML string into plain text, preserving its structure.

Deprecated

since 1.0.0

See also

backdrop_html_to_text()

Related topics

File

core/includes/drupal.inc, line 2102
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_html_to_text($string, $allowed_tags = NULL) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_html_to_text($string, $allowed_tags);
}