function _filter_html_escape
Same name and namespace in other branches
- 10 core/modules/filter/filter.module \_filter_html_escape()
- 9 core/modules/filter/filter.module \_filter_html_escape()
- 8.9.x core/modules/filter/filter.module \_filter_html_escape()
- 7.x modules/filter/filter.module \_filter_html_escape()
- main core/modules/filter/filter.module \_filter_html_escape()
Escapes all HTML tags, so they will be visible instead of being effective.
Deprecated
in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterHtmlEscape::process() and no replacement is provided.
See also
https://www.drupal.org/node/3566774
Related topics
File
-
core/
modules/ filter/ filter.module, line 551
Code
function _filter_html_escape($text) {
@trigger_error(__FUNCTION__ . '() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \\Drupal\\filter\\Plugin\\Filter\\FilterHtmlEscape::process() and no replacement is provided. See https://www.drupal.org/node/3566774', E_USER_DEPRECATED);
$langcode = \Drupal::languageManager()->getCurrentLanguage()
->getId();
return \Drupal::service('plugin.manager.filter')->createInstance('filter_html_escape')
->process($text, $langcode)
->getProcessedText();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.