Change record status: 
Project: 
Introduced in branch: 
10.1.x
Introduced in version: 
10.1.0
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