By sun on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0
Issue links:
Description:
The internal/private filter callback function _filter_htmlcorrector() of Filter module has been replaced with an Html utility class.
Drupal 7
$html = _filter_htmlcorrector($html);
$dom = filter_dom_load($html);
$html = filter_dom_serialize($dom);
Drupal 8
use Drupal\Component\Utility\Html;
$html = Html::normalize($html);
$dom = Html::load($html);
$html = Html::serialize($dom);
Impacts:
Module developers