system/View/Filters.php
public static function nl2br(string $value): string
	{
		$typography = Services::typography();

		return $typography->nl2brExceptPre($value);
	}
public static function nl2br(string $value): string
	{
		$typography = Services::typography();

		return $typography->nl2brExceptPre($value);
	}
Returns a string with all instances of newline character (\n)
converted to an HTML <br/> tag.

@param string $value

@return string