nl2br[?? ??? <br />? ??]
nl2br[換行符替換成<br /> ]
test.php:
$smarty = new Smarty;
$smarty->ass('articleTitle', "??? ?? ? ??, ?? ?? ???");
$smarty->display(' test.html');
test.html:
{$articleTitle|nl2br}
輸?:
??? ?? ? ???<br />?? ?? ???
? ??? ??? ???? ???? ????.