<!DOCTYPE html>
<html>
<body>

<?php
echo nl2br("One line.\nAnother line.");
?>
  
</body>
</html>