asp去除html标记与空格的正则
程序员文章站
2022-11-01 09:53:21
function nohtml(str) dim re set re=new regexp &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," ")
str=replace(str," ","")
str=replace(str," ","")
nohtml=str
set re=nothing
end function
dim re
set re=new regexp
re.ignorecase =true
re.global=true
re.pattern="(\<.[^\<]*\>)"
str=re.replace(str," ")
re.pattern="(\<\/[^\<]*\>)"
str=re.replace(str," ")
str=replace(str," ","")
str=replace(str," ","")
nohtml=str
set re=nothing
end function
推荐阅读
-
php 去除html标记--strip_tags与htmlspecialchars的区别详解
-
asp去除所有的超级链接的两种方法 替换与正则
-
asp去除html标记与空格的正则
-
asp去除所有的超级链接的两种方法 替换与正则
-
php 去除html标记--strip_tags与htmlspecialchars的区别详解
-
php 去除html标记--strip_tags与htmlspecialchars的区别详解
-
php 去除html标记--strip_tags与htmlspecialchars的区别详解_PHP教程
-
php 去除html标记--strip_tags与htmlspecialchars的区别详解_PHP教程
-
asp去除html标记与空格的正则
-
php 去除html标记之strip_tags与htmlspecialchars的区别分析