3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $text = "blablabla\r\nEinzelne Zeile\nblablabla"; $text = str_replace(array("\r\n", "\n", "\r"),"<br>", $text); echo htmlentities($text);
Output for 5.6.30
blablabla&lt;br&gt;Einzelne Zeile&lt;br&gt;blablabla