nl2br in a template?
| From: | gawan | Date: | Fri, 21 Feb 2003 23:10:33 +0000 |
| Subject: | nl2br in a template? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8108@lists.php.net to get a copy of this message | ||
Hi
I have text fields from a database to display through smarty template.
Is there a convenient way to use something similar to php nl2br()
to show new lines as <br> tags when in a template?
gawan