5 * @subpackage plugins
\r
12 * Type: modifier<br>
\r
14 * Date: Feb 26, 2003
\r
15 * Purpose: convert \r\n, \r or \n to <<br>>
\r
17 * - contents = contents to replace
\r
18 * - preceed_test = if true, includes preceeding break tags
\r
20 * Example: {$text|nl2br}
\r
21 * @link http://smarty.php.net/manual/en/language.modifier.nl2br.php
\r
22 * nl2br (Smarty online manual)
\r
24 * @author Monte Ohrt <monte@ispi.net>
\r
28 function smarty_modifier_nl2br($string)
\r
30 return nl2br($string);
\r
33 /* vim: set expandtab: */
\r