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

ASP中過濾UBB和Html標簽

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

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

復制代碼 代碼如下:

<%
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 
%>

相關文章

最新評論