Smarty - the compiling PHP template engine | ||
---|---|---|
Prev 来源:PHP中文社区 | Chapter 5. Variable Modifiers[变量调节器] | Next |
nl2br
换行符替换成<br />
All linebreaks will be converted to <br /> tags in the given variable. This is equivalent to the PHP nl2br() function.
所有的换行符将被替换成 <br />.功能同PHP中的nl2br()函数一样.
Example 5-14. nl2br
|