function _filter_html_escape

_filter_html_escape($text)

Escapes all HTML tags, so they will be visible instead of being effective.

Related topics

Standard filters
Filters implemented by the Filter module.

File

core/modules/filter/filter.module, line 758
Framework for handling the filtering of content.

Code

function _filter_html_escape($text) {
  return trim(Html::escape($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/core!modules!filter!filter.module/function/_filter_html_escape/8.1.x