You are here

function _filter_html_escape in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/filter/filter.module \_filter_html_escape()
  2. 7 modules/filter/filter.module \_filter_html_escape()
  3. 10 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 754
Framework for handling the filtering of content.

Code

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