Function striphtml (strtext)
Dim arysplit,i,j, Stroutput
Arysplit=split (strtext, "<")
If Len (arysplit (0)) >0 then j=1 else j=0
For I=j to UBound (arysplit)
If InStr (Arysplit (i), ">") Then
Arysplit (i) =mid (Arysplit (i), InStr (Arysplit (i), ">") +1)
Else
Arysplit (i) = "<" & Arysplit (i)
End If
Next
<form method= "POST" Id=form1 name=form1>
<b>enter an HTML string:</b><br>
<textarea name= "txthtml" cols= "rows=" "8" wrap= "virtual" ><%=request ("txthtml")%></textarea>
<p>
<input type= "Submit" value= "Strip HTML tags!" Id=submit1 name=submit1>
</form>
<% if Len (Request ("txthtml")) > 0 Then%>
<p><b><u>view of String <i>with no</i> HTML stripping:</u></b><br>
<xmp>
<%=request ("txthtml")%>
</xmp><p>
<b><u>view of string <i>with</i> HTML stripping:</u></b><br>
<pre>
<%=striphtml (Request ("txthtml"))%>
</pre>
<% End If%>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service