Function unhtml(str) Set re = New Regexp re.IgnoreCase=True re.Global=True re.Pattern="<.*?>" unhtml=re.Replace(str,"") Set re=Nothing End Functionemail=unhtml(request("email"))┏━━━.:可爱的分割线:.━━━━━━━━━━━━━━━━━ ┃ ┃在线的RSS订阅系统(Blog、新闻、技术):http://www.gbmad.net/rss/ ┃无论你在哪,只要能上网就能订阅查看你喜欢的聚合 ┃ ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━
锚点?
TO:dreamsun(梦小阳)
是不是用正则表达式?能不能详细点
re.IgnoreCase =true
re.Global=True
re.Pattern="<a[^\>]*>(.*)</a>"
strContent=re.Replace(strContent)
result=RegExp.$1
Set re = New Regexp
re.IgnoreCase=True
re.Global=True
re.Pattern="<.*?>"
unhtml=re.Replace(str,"")
Set re=Nothing
End Functionemail=unhtml(request("email"))┏━━━.:可爱的分割线:.━━━━━━━━━━━━━━━━━
┃
┃在线的RSS订阅系统(Blog、新闻、技术):http://www.gbmad.net/rss/
┃无论你在哪,只要能上网就能订阅查看你喜欢的聚合
┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━
我有这样的问题:
我的邮件存储在隐藏控件hidetext.value中,value的部分数据是<a href="xx.html">xx.html</a>的<a href="xx.html"></a>,
想要将<a href="xx.html">xx.html</a>的<a href="xx.html"></a>去掉如何?
<body>
<a href=http://www.7long.net/mail/desen.htm id=edittext onclick="alert (edittext.innerText)">国家级二级新药[红花黄色素]火热招商中!</a>
</body>
</html>
{
return str.replace(/\<.*?>/ig,"");
}