Location: PHPKode > projects > SithTemplate > SithTemplate-1.1/docs/examples/stdlib/01_filter_linebreaks_linebreaksbr.html
{% comment %}
 var = "foo
 
 bar
 baz"
{% endcomment %}

{{ var|linebreaks }}
{% comment %}
 Outputs (whitespace may vary):
 <p>foo</p>
 
 <p>bar<br />
 baz</p>
{% endcomment %}

{{ var|linebreaksbr }}
{% comment %}
 Outputs (whitespace may vary):
 foo<br />
 <br />
 bar<br />
 baz
{% endcomment %}
Return current item: SithTemplate