By fjgarlin on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
\Drupal\Component\Utility\Html::load(), which is used by several core and contrib filters as well as helper methods such as
\Drupal\Component\Utility\Html::normalize() and \Drupal\Component\Utility\Html::transformRootRelativeUrlsToAbsolute(), now normalizes all newlines to the line feed character.
$html = Html::transformRootRelativeUrlsToAbsolute("Hi there\r\nTesting", "https://test.com");
print $html;
Before
Hi there \nTesting
After
Hi there\nTesting
Impacts:
Site builders, administrators, editors
Module developers