function ubb($Text) {
$Text=htmlspecialchars($Text);
$Text=ereg_replace("\r\n","br",$Text);
$Text=ereg_replace("\r","br",$Text);
$Text=nl2br($Text);
$Text=preg_replace("/\\t/is"," ",$Text);
$Text=preg_replace("/\[h1\](.+?)\[\/h1\]/is","h1\\1/h1",$Text);
$Text=preg_replace("/\[h2\](.+?)\[\/h2\]/is","h2\\1/h2",$Text);
$Text=preg_replace("/\[h3\](.+?)\[\/h3\]/is","h3\\1/h3",$Text);
$Text=preg_replace("/\[h4\](.+?)\[\/h4\]/is","h4\\1/h4",$Text);
$Text=preg_re...[ 查看全文 ]