|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
Windows本身的所有问题都会一成不变的也累加到了它的身上。安全性、稳定性、跨平台性都会因为与NT的捆绑而显现出来;函数|正则<%
OptionExplicit
FunctionstripHTML(strtext)
dimarysplit,i,j,strOutput
arysplit=split(strtext,"<")
iflen(arysplit(0))>0thenj=1elsej=0
fori=jtoubound(arysplit)
ifinstr(arysplit(i),">")then
arysplit(i)=mid(arysplit(i),instr(arysplit(i),">")+1)
else
arysplit(i)="<"&arysplit(i)
endif
next
strOutput=join(arysplit,"")
strOutput=mid(strOutput,2-j)
strOutput=replace(strOutput,">",">")
strOutput=replace(strOutput,"<","<")</P><P>stripHTML=strOutput
EndFunction
%>
<formmethod="post"id=form1name=form1>
<b>EnteranHTMLString:</b><br>
<textareaname="txtHTML"cols="50"rows="8"wrap="virtual"><%=Request("txtHTML")%></textarea>
<inputtype="submit"value="StripHTMLTags!"id=submit1name=submit1>
</form></P><P><%ifLen(Request("txtHTML"))>0then%>
<hr>
<b><u>Viewofstring<i>withno</i>HTMLstripping:</u></b><br>
<xmp>
<%=Request("txtHTML")%>
</xmp>
<b><u>Viewofstring<i>with</i>HTMLstripping:</u></b><br>
<pre>
<%=StripHTML(Request("txtHTML"))%>
</pre>
<%EndIf%>
专业性的服务。有的ASP商提供垂直型的应用服务,针对某一特定行业提供应用服务。 |
|