2a5f238bbdcacdf3e2f5a26801961335416a8d52
[atutor.git] / mods / phpdoc2 / PhpDocumentor / phpDocumentor / Smarty-2.6.0 / libs / plugins / modifier.nl2br.php
1 <?php\r
2 /**\r
3  * Smarty plugin\r
4  * @package Smarty\r
5  * @subpackage plugins\r
6  */\r
7 \r
8 \r
9 /**\r
10  * Smarty plugin\r
11  *\r
12  * Type:     modifier<br>\r
13  * Name:     nl2br<br>\r
14  * Date:     Feb 26, 2003\r
15  * Purpose:  convert \r\n, \r or \n to <<br>>\r
16  * Input:<br>\r
17  *         - contents = contents to replace\r
18  *         - preceed_test = if true, includes preceeding break tags\r
19  *           in replacement\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
23  * @version  1.0\r
24  * @author       Monte Ohrt <monte@ispi.net>\r
25  * @param string\r
26  * @return string\r
27  */\r
28 function smarty_modifier_nl2br($string)\r
29 {\r
30     return nl2br($string);\r
31 }\r
32 \r
33 /* vim: set expandtab: */\r
34 \r
35 ?>\r