function _filter_html_escape

Same name and namespace in other branches
  1. 11.x core/modules/filter/filter.module \_filter_html_escape()
  2. 9 core/modules/filter/filter.module \_filter_html_escape()
  3. 8.9.x core/modules/filter/filter.module \_filter_html_escape()
  4. 7.x modules/filter/filter.module \_filter_html_escape()
  5. main 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

File

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

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.