nl2br
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Inserts HTML line breaks before all newlines in a string
nl2br
(
string $string
,
bool $use_xhtml
=
true
):
string
statamic/cms
public function
nl2br
(
$value
)
{
return
nl2br
(
$value
);
}
src/Modifiers/CoreModifiers.php