csdn的代码高亮有问题
public function transform($txt)
{
$txt = trim($txt);
$txt = addslashes(htmlspecialchars($txt, ENT_QUOTES, "UTF-8"));
if (preg_match_all("/\
public function transform($txt)
{
$txt = trim($txt);
$txt = addslashes(htmlspecialchars($txt, ENT_QUOTES, "UTF-8"));
if (preg_match_all("/\
{
$txt = trim($txt);
$txt = addslashes(htmlspecialchars($txt, ENT_QUOTES, "UTF-8"));
if (preg_match_all("/\
$txt = preg_replace('/\s{2,}/', ' ', $txt);
不知道行不行了?