Files
smarty/libs/plugins/modifier.nl2br.php

36 lines
710 B
PHP
Raw Normal View History

2003-02-26 22:16:14 +00:00
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
2003-02-26 22:16:14 +00:00
/**
2003-02-26 22:16:14 +00:00
* Smarty plugin
*
* Type: modifier<br>
* Name: nl2br<br>
2003-02-26 22:16:14 +00:00
* Date: Feb 26, 2003
* Purpose: convert \r\n, \r or \n to <<br>>
* Input:<br>
* - contents = contents to replace
* - preceed_test = if true, includes preceeding break tags
2003-02-26 22:16:14 +00:00
* in replacement
* Example: {$text|nl2br}
* @link http://smarty.php.net/manual/en/language.modifier.nl2br.php
* nl2br (Smarty online manual)
* @version 1.0
2003-12-19 17:18:56 +00:00
* @author Monte Ohrt <monte@ispi.net>
* @param string
* @return string
2003-02-26 22:16:14 +00:00
*/
function smarty_modifier_nl2br($string)
{
return nl2br($string);
}
/* vim: set expandtab: */
?>