function _filter_html_escape

Same name and namespace in other branches
  1. 7.x modules/filter/filter.module \_filter_html_escape()
  2. 9 core/modules/filter/filter.module \_filter_html_escape()
  3. 10 core/modules/filter/filter.module \_filter_html_escape()
  4. 11.x core/modules/filter/filter.module \_filter_html_escape()

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

Related topics

1 call to _filter_html_escape()
FilterHtmlEscape::process in core/modules/filter/src/Plugin/Filter/FilterHtmlEscape.php
Performs the filter processing.

File

core/modules/filter/filter.module, line 768

Code

function _filter_html_escape($text) {
    return trim(Html::escape($text));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.