nl2br
reactphp/promise
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Inserts HTML line breaks before all newlines in a string
<?php nl2br
(
string $string
,
bool $use_xhtml
=
true
):
string