You are here

function _filter_html_escape in Drupal 10

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. 9 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 757
Framework for handling the filtering of content.

Code

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