欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

ASP中過濾UBB和Html標(biāo)簽

 更新時間:2006年09月27日 00:00:00   作者:  

我們存儲在數(shù)據(jù)庫中的內(nèi)容是HTML格式的,但是有時候我們需要無格式的顯示這內(nèi)容,這是用正則表達(dá)式實(shí)現(xiàn)的過濾。

復(fù)制代碼 代碼如下:

<%
function nohtml(str) 
dim re 
Set re=new RegExp 
re.IgnoreCase =true 
re.Global=True 
re.Pattern="(\<.[^\<]*\>)" 
str=re.replace(str," ") 
re.Pattern="(\<\/[^\<]*\>)" 
str=re.replace(str," ") 
nohtml=str 
set re=nothing 
end function 
%>

相關(guān)文章

最新評論