function FilterHtmlCorrector::process

Same name in other branches
  1. 9 core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector::process()
  2. 8.9.x core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector::process()
  3. 11.x core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php \Drupal\filter\Plugin\Filter\FilterHtmlCorrector::process()

Overrides FilterInterface::process

File

core/modules/filter/src/Plugin/Filter/FilterHtmlCorrector.php, line 26

Class

FilterHtmlCorrector
Provides a filter to correct faulty and chopped off HTML.

Namespace

Drupal\filter\Plugin\Filter

Code

public function process($text, $langcode) {
    return new FilterProcessResult(Html::normalize($text));
}

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