hello there,
how to replace <enter> with <br>?
$html = preg_replace("??? ???", "<br>", $html);
thanks.
$html = str_replace(chr(13), "<br>", $html); $html = str_replace(chr(15), "<br>", $html);
http://www.asciitable.com/
thanks pal!
PHP in-built - nl2br()
🙂
yep ... nl2br() works, but it can also make lots of harm (after editing ... etc)