forked from umakantp/jsmart
-
Notifications
You must be signed in to change notification settings - Fork 2
nl2br
pfaciana edited this page Sep 25, 2019
·
1 revision
All "\n" line breaks will be converted to html
tags in the given variable. This is equivalent to the PHP's nl2br() function.
Template:
{$articleTitle = 'Sun or rain expected\ntoday, dark tonight'}
{$articleTitle|nl2br}output:
Sun or rain expected<br />today, dark tonight
see also nl2br in PHP Smarty documentation.