multiline($text)

Converts new lines in text to html breaks.

  • $text (string)
  • return (string)

Example

<?php echo multiline($page->text()) ?>