nl2br
Summary
Returns the input string with all newlines converted to HTML breaks.Usage
input|nl2br()
Returns
A string with HTML breaks.Description
This operator takes a string as input. It replaces newline characters/sequences with HTML break tags and returns a modified version of the input.
Examples
Example 1
{'The lazy cat jumps over the quick rat.'|break()}
The following output will be produced:
The lazy<br />cat<br />jumps over<br />the quick rat.
Balazs Halasy (05/02/2004 10:57 am)
Balazs Halasy (04/05/2005 2:43 pm)
Comments
Error
Wednesday 26 July 2006 9:38:19 am
XIII