日期:2014-05-17 浏览次数:20918 次
php函数
htmlspecialchars()
 ? nl2br() ?把'\n'换行用<br/>or<br>代替插入内容 ? example: ?<?php
  
    $html = htmlspecialchars("<a href='text'>test</a>");
    echo $html;
  
?>
<?php
   echo nl2br("an apple is red \n you agree with me");
  
  //an apple is red<br/>
you agree with me
?>
?
?
?
?