nl2br

Top  Previous  Next

All line breaks will be converted to <br> tags in the given variable. It's very usable to output text area fields

Example:

Input:

John

Smith

Template:

       {#name|nl2br#}

Output:

       John<br>Smith