input|nl2br()
This operator takes a string as input. It replaces newline characters/sequences with HTML break tags and returns a modified version of the input.
{'The lazy cat jumps over the quick rat.'|nl2br()}
The following output will be produced:
The lazy<br />cat<br />jumps over<br />the quick rat.