- unction ubb2html($content)
- {
- global $article;
- //是否自动识别
- if ($article['isparseurl'] == "1")
- {
- $content = parseurl($content);
- }
- //自动识别结束
- $content = eregi_replace(quotemeta("[b]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[/b]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[i]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[/i]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[u]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[/u]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[center]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[/center]"),quotemeta(""),$content);
- $content = eregi_replace(quotemeta("[quote]"),quotemeta("
引用: |
| "),$content);
- $content = eregi_replace(quotemeta("[/quote]"),quotemeta("
|
| "),$content);
- $content = eregi_replace(quotemeta("[code]"),quotemeta("
代码: |
| "),$content);
- $content = eregi_replace(quotemeta("
复制代码
"),quotemeta(" |
|
"),$content);
$content = eregi_replace("\[images\]([^\[]*)\[/images\]","",$content);
$content = eregi_replace("\[url\]www.([^\[]*)\[/url\]", "www.\1",$content);
$content = eregi_replace("\[url\]([^\[]*)\[/url\]","\1",$content);
$content = eregi_replace("\[url=([^\[]*)\]([^\[]*)\[/url\]","\2",$content);
$content = eregi_replace("\[email\]([^\[]*)\[/email\]", "\1",$content);
//$content = preg_replace( '/javascript/i', 'java 腳本', $content);
返回$內容;
}[/code]
陳述:本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn |