{"id":36,"date":"2010-07-01T21:42:55","date_gmt":"2010-07-01T21:42:55","guid":{"rendered":"http:\/\/blog.yyhcw.com\/post\/36.html"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T07:54:17","slug":"kesion6.5","status":"publish","type":"post","link":"http:\/\/blog.yyhcw.com\/post\/36.html","title":{"rendered":"\u79d1\u8baf6.5\u4f01\u4e1a\u9ec4\u9875\u9996\u9875\u5217\u8868\u663e\u793a"},"content":{"rendered":"<p>\u3000\u3000\u4e5f\u4e0d\u77e5\u9053\u662f\u6211\u7684\u64cd\u4f5c\u4e0d\u6b63\u786e\u8fd8\u662f\u600e\u4e48\u56de\u4e8b\uff0c\u60f3\u8ba9\u4f01\u4e1a\u9ec4\u9875\u4ee5\u5217\u8868\u7684\u5f62\u5f0f\u663e\u793a\u51fa\u6765 \u53ef\u662f\u600e\u4e48\u8c03\u6574\u4e5f\u4e0d\u884c \u7b97\u4e86\uff0c\u6700\u540e\u6253\u7b97\u8fd8\u662f\u81ea\u5df1\u52a8\u624b\u6539\u9020\u5427\uff01\u65e2\u65b9\u4fbf\u4e5f\u5feb\u6377\uff0c\u5e9f\u8bdd\u4e0d\u591a\u8bf4\u4e00\u4e0b\u662f\u6539\u9020<a target=\"_blank\" href=\"\/article\/36.html\">\u79d1\u8baf6.5\u4f01\u4e1a\u9ec4\u9875\u9996\u9875\u5217\u8868\u663e\u793a<\/a>\u8fc7\u7a0b\uff1a<\/p>\n<p>\u6211\u76f4\u63a5\u5c06\u4fee\u6539\u8fc7\u7684\u6e90\u4ee3\u7801\u53d1\u4e0a\u6765\u5427\uff01\u6211\u8bed\u8a00\u80fd\u529b\u4e0d\u884c\uff0c\u4e0d\u8981\u89c1\u7b11........<\/p>\n<p>&lt;%Option Explicit%&gt;<br \/>&lt;!--#include File=&quot;..\/Conn.asp&quot;--&gt;<br \/>&lt;!--#include file=&quot;..\/KS_Cls\/Kesion.CommonCls.asp&quot;--&gt;<br \/>&lt;!--#include file=&quot;..\/KS_Cls\/Kesion.Label.CommonCls.asp&quot;--&gt;<br \/>&lt;%<\/p>\n<p>'****************************************************<br \/>' Software name:Kesion CMS 6.5<br \/>' Email: service@kesion.com . QQ:111394,9537636<br \/>' Web: http:\/\/www.kesion.com http:\/\/www.kesion.cn<br \/>' Copyright (C) Kesion Network All Rights Reserved.<br \/>'****************************************************<br \/>Dim SearchCls<br \/>Set SearchCls = New SearchResult<br \/>SearchCls.Kesion()<br \/>Set SearchCls = Nothing<\/p>\n<p>Class SearchResult<br \/>&nbsp;&nbsp;&nbsp; Private KS,KMR,F_C,LoopContent,SearchResult,photourl<br \/>&nbsp;Private ChannelID,ClassID,SearchType,str,astr,SearchForm<br \/>&nbsp;&nbsp;&nbsp; Private I,TotalPut, CurrentPage,MaxPerPage,RS,KeyWordArr<br \/>&nbsp;&nbsp; <br \/>&nbsp;Private Sub Class_Initialize()<br \/>&nbsp;<br \/>&nbsp;'***********\u5224\u65ad\u662f\u5426\u4e0e\u670d\u52a1\u5668\u7aef\u8fde\u63a5*********<br \/>&nbsp;&nbsp;If (Not Response.IsClientConnected)Then<br \/>&nbsp;&nbsp;&nbsp;Response.Clear<br \/>&nbsp;&nbsp;&nbsp;Response.End<br \/>&nbsp;&nbsp; End If<br \/>&nbsp;<br \/>&nbsp;&nbsp;Set KS=New PublicCls<br \/>&nbsp;&nbsp;Set KMR=New Refresh<br \/>&nbsp;&nbsp;MaxPerPage=3<br \/>&nbsp;&nbsp;If KS.S(&quot;page&quot;) &lt;&gt; &quot;&quot; Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CurrentPage = CInt(Request(&quot;page&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CurrentPage = 1<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<\/p>\n<p>&nbsp;End Sub<\/p>\n<p>&nbsp;Private Sub Class_Terminate()<br \/>'&nbsp;&nbsp;response.Write &quot;bbbbbbbb&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; closeconn<br \/>&nbsp;&nbsp;&nbsp;&nbsp; Set KS=Nothing<br \/>&nbsp;&nbsp;Set KMR=Nothing<br \/>&nbsp;End Sub<br \/>&nbsp; <br \/>&nbsp;Sub Kesion()<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; F_C = KMR.LoadTemplate(KS.Setting(3) &amp; KS.Setting(90) &amp; &quot;\u4f01\u4e1a\u7a7a\u95f4\/index.html&quot;)<br \/>&nbsp;&nbsp;&nbsp;&nbsp; If Trim(F_C) = &quot;&quot; Then F_C = &quot;\u6a21\u677f\u4e0d\u5b58\u5728!&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; <br \/>&nbsp;&nbsp;&nbsp;&nbsp; FCls.RefreshType = &quot;enterprise&quot; '\u8bbe\u7f6e\u5237\u65b0\u7c7b\u578b\uff0c\u4ee5\u4fbf\u53d6\u5f97\u5f53\u524d\u4f4d\u7f6e\u5bfc\u822a\u7b49<br \/>&nbsp;&nbsp;&nbsp;&nbsp; Fcls.RefreshFolderID = &quot;0&quot; '\u8bbe\u7f6e\u5f53\u524d\u5237\u65b0\u76ee\u5f55ID \u4e3a&quot;0&quot; \u4ee5\u53d6\u5f97\u901a\u7528\u6807\u7b7e<br \/>&nbsp;&nbsp;&nbsp;&nbsp; <br \/>&nbsp;&nbsp;&nbsp;&nbsp; '********\u83b7\u53d6\u5206\u7c7b*********<br \/>&nbsp;&nbsp;&nbsp;&nbsp; call GetClassList()<br \/>&nbsp;&nbsp;&nbsp;&nbsp; F_C=Replace(F_C,&quot;{$ShowClass}&quot;,str)<br \/>&nbsp;&nbsp;&nbsp;&nbsp; '********\u83b7\u53d6\u5730\u533a*********<br \/>&nbsp;&nbsp;&nbsp;&nbsp; call getarealist()<br \/>&nbsp;&nbsp;&nbsp;&nbsp; F_C=Replace(F_C,&quot;{$ShowAreaList}&quot;,astr)<br \/>&nbsp;&nbsp;&nbsp;&nbsp; <br \/>'&nbsp;&nbsp;&nbsp;&nbsp; Response.Write FCls.RefreshType&amp;&quot;fffffffffffsss&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; '\u5f97\u5230&ldquo;[loop] [\/loop]&rdquo;\u4e2d\u95f4\u7684\u6240\u6709\u5185\u5bb9<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LoopContent=KS.CutFixContent(F_C, &quot;[loop]&quot;, &quot;[\/loop]&quot;, 0)<br \/>&nbsp;&nbsp;&nbsp;Call LoadSearch()<br \/>&nbsp;&nbsp;&nbsp;F_C = KMR.KSLabelReplaceAll(F_C) <br \/>&nbsp;&nbsp;&nbsp;Response.Write F_C<br \/>&nbsp;End Sub<br \/>&nbsp;<br \/>&nbsp;<br \/>Sub GetClassList()<br \/>&nbsp;&nbsp; Dim RS,I,RSS<br \/>&nbsp;&nbsp; Set RS=Conn.Execute(&quot;select id,classname from ks_enterpriseclass where parentid=0 order by orderid&quot;)<br \/>&nbsp;&nbsp; str=&quot;&lt;table border=&quot;&quot;0&quot;&quot; width=&quot;&quot;100%&quot;&quot; cellspacing=&quot;&quot;0&quot;&quot; cellpadding=&quot;&quot;0&quot;&quot;&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp; Do While Not RS.Eof<br \/>&nbsp;&nbsp; str=str &amp; &quot;&lt;tr&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp; for i=1 to 2<br \/>&nbsp;&nbsp;&nbsp;&nbsp; str=str &amp; &quot;&lt;td width=&quot;&quot;50%&quot;&quot; style=&quot;&quot;padding:5px&quot;&quot;&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp; str=str &amp; &quot;&lt;div style=&quot;&quot;height:20px;&quot;&quot; class=&quot;&quot;classname&quot;&quot;&gt;&lt;span style=&quot;&quot;font-weight:bold&quot;&quot;&gt;&lt;img src=&quot;&quot;..\/images\/arrow_r.gif&quot;&quot;&gt; &lt;a href=&quot;&quot;list.asp?pid=&quot; &amp; rs(0) &amp; &quot;&quot;&quot;&gt;&quot; &amp; rs(1) &amp;&quot;&lt;\/a&gt;&lt;\/span&gt;(&quot; &amp; conn.execute(&quot;select count(id) from ks_enterprise where status=1 and classid=&quot; &amp; rs(0))(0) &amp;&quot;) &lt;\/div&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp; str=str &amp; &quot;&lt;div style=&quot;&quot;height:50px;padding-left:12px&quot;&quot;&gt;&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; dim xml,node,num,n<br \/>&nbsp;&nbsp;&nbsp;&nbsp; set rss=conn.execute(&quot;select id,classname from ks_enterpriseclass where parentid=&quot; &amp; rs(0))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; if not rss.eof then set xml=KS.RsToXml(rss,&quot;row&quot;,&quot;&quot;) else xml=empty<br \/>&nbsp;&nbsp;&nbsp;&nbsp; rss.close:set rss=nothing<br \/>&nbsp;&nbsp;&nbsp;&nbsp; if isobject(xml) then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; num=xml.DocumentElement.SelectNodes(&quot;row&quot;).length : n=0<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for each node in xml.DocumentElement.SelectNodes(&quot;row&quot;) <br \/>&nbsp;&nbsp;&nbsp;&nbsp;str=str &amp; &quot;&lt;a href='list.asp?id=&quot; &amp; node.selectsinglenode(&quot;@id&quot;).text &amp; &quot;'&gt;&quot; &amp; node.selectsinglenode(&quot;@classname&quot;).text &amp; &quot;&lt;\/a&gt;&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;n=n+1<br \/>&nbsp;&nbsp;&nbsp;&nbsp;if num&lt;&gt;n then str=str &amp; &quot; | &quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; next<br \/>&nbsp;&nbsp;&nbsp; xml=empty : set node=nothing<br \/>&nbsp;&nbsp;&nbsp;&nbsp; end if<br \/>&nbsp;&nbsp;&nbsp;&nbsp; str=str &amp; &quot;&lt;\/div&gt;&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp; str=str &amp; &quot;&lt;\/td&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp; rs.movenext<br \/>&nbsp;&nbsp;&nbsp;&nbsp; if rs.eof then exit for<br \/>&nbsp;&nbsp; next<br \/>&nbsp;&nbsp; str=str &amp; &quot;&lt;\/tr&gt;&quot;<br \/>&nbsp;&nbsp; Loop<br \/>&nbsp;&nbsp; str=str &amp; &quot;&lt;\/table&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp; rs.close:set rs=nothing<br \/>End Sub<br \/>&nbsp;<br \/>'******************\u83b7\u53d6\u5730\u533a*********<br \/>Sub getarealist()<br \/>&nbsp;&nbsp;&nbsp; Dim RS,I,SQL,K,N<br \/>&nbsp;&nbsp;&nbsp; Set RS=Conn.Execute(&quot;Select id,city from KS_Province where parentid=0 order by orderid&quot;)<br \/>&nbsp;&nbsp;&nbsp; IF Not RS.Eof Then SQL=RS.GetRows(-1):RS.Close:Set RS=Nothing<br \/>&nbsp;&nbsp;&nbsp; If IsArray(SQL) Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp; astr=&quot;&lt;table border='0' width='100%'&gt;&quot; &amp;vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp; N=0<br \/>&nbsp;&nbsp;&nbsp;&nbsp; For i=0 To Ubound(SQL,2)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;astr=astr &amp; &quot;&lt;tr&gt;&quot; &amp;vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp;For K=1 To 3<br \/>&nbsp;&nbsp;&nbsp;&nbsp;astr=astr &amp; &quot;&lt;td&gt;&lt;img src='..\/images\/arrow_r.gif'&gt; &lt;a href=&quot;&quot;list.asp?province=&quot; &amp; sql(1,n) &amp; &quot;&amp;provinceid=&quot; &amp; SQL(0,n) &amp; &quot;&quot;&quot;&gt;&quot; &amp; sql(1,n) &amp; &quot;&lt;\/a&gt;&lt;\/td&gt;&quot;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;n=n+1<br \/>&nbsp;&nbsp;&nbsp;&nbsp;if n&gt;Ubound(SQL,2) then Exit For<br \/>&nbsp;&nbsp;&nbsp;&nbsp;Next<br \/>&nbsp;&nbsp;&nbsp;&nbsp;astr=astr &amp; &quot;&lt;\/tr&gt;&quot; &amp;vbcrlf<br \/>&nbsp;&nbsp;&nbsp;&nbsp;if n&gt;Ubound(SQL,2) then Exit For<br \/>&nbsp;&nbsp;&nbsp; Next<br \/>&nbsp;&nbsp;&nbsp; astr=astr &amp; &quot;&lt;\/table&gt;&quot; &amp; vbcrlf<br \/>&nbsp;&nbsp; End If<br \/>End Sub<br \/>&nbsp;<br \/>&nbsp;<br \/>&nbsp;<\/p>\n<p>&nbsp;Sub LoadSearch()<br \/>&nbsp;&nbsp;&nbsp;&nbsp; Call ArticleSearch()<br \/>'&nbsp;F_C = Replace(F_C,&quot;{$GetClassName}&quot;,&quot;\u90d1\u5dde\u5bb6\u653f\u7f51&quot;)<br \/>&nbsp;F_C = Replace(F_C,&quot;{$ShowTotal}&quot;,totalput)<br \/>&nbsp;F_C = Replace(F_C,KS.CutFixContent(F_C, &quot;[loop]&quot;, &quot;[\/loop]&quot;, 1),SearchResult)<br \/>&nbsp;F_C = Replace(F_C,&quot;{$ShowPage}&quot;,KS.ShowPage(totalput, MaxPerPage, &quot;&quot;, CurrentPage,false,false))<br \/>&nbsp; End Sub<br \/>&nbsp; <br \/>&nbsp; <br \/>Sub ArticleSearch()<br \/>&nbsp; Dim SqlStr,Param<br \/>'&nbsp; Param=&quot; Where IsShow=1&quot;<br \/>'&nbsp; If DQType &lt;&gt; 0 Then Param = Param &amp;&quot; And Y_DiQu=&quot;&amp; DQType &amp;&quot;&quot;<br \/>&nbsp; <br \/>&nbsp;SqlStr=&quot;Select * From KS_EnterPrise&quot; &amp; Param &amp; &quot; Order By ID Desc&quot;<br \/>&nbsp; Set RS=Server.CreateObject(&quot;ADODB.RECORDSET&quot;)<br \/>&nbsp; RS.Open SqlStr,Conn,1,3<br \/>&nbsp; IF RS.Eof And RS.Bof Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; totalput=0<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SearchResult = &quot;&lt;a href=&quot;&quot;<a href=\"http:\/\/www.21863.cn\">http:\/\/www.21863.cn<\/a>&quot;&quot;&gt;\u90d1\u5dde\u5bb6\u653f\u7f51&lt;\/a&gt;&quot;<br \/>&nbsp;&nbsp; exit sub<br \/>&nbsp; Else<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TotalPut= Conn.Execute(&quot;Select count(*) from KS_EnterPrise&quot; &amp; Param)(0)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If CurrentPage &lt; 1 Then CurrentPage = 1<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (CurrentPage - 1) * MaxPerPage &gt; totalPut Then<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (TotalPut Mod M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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CurrentPage = 1<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call GetSearchResult<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br \/>&nbsp;&nbsp;&nbsp; End IF<br \/>&nbsp;RS.Close<br \/>&nbsp;Set RS=Nothing<br \/>End Sub&nbsp;&nbsp;<\/p>\n<p>&nbsp; Sub GetSearchResult()<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on error resume next <br \/>&nbsp;&nbsp; I=0<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim LC<br \/>&nbsp;&nbsp;&nbsp; Do While Not RS.Eof<br \/>&nbsp;&nbsp;&nbsp; If Not Response.IsClientConnected Then Response.end<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=LoopContent<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetUserName}&quot;,rs(&quot;UserName&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetCompanyName}&quot;,rs(&quot;CompanyName&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetProvince}&quot;,rs(&quot;Province&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetCity}&quot;,rs(&quot;City&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetAddress}&quot;,rs(&quot;Address&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetEmail}&quot;,rs(&quot;Email&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetMobile}&quot;,rs(&quot;Mobile&quot;))<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetIntro}&quot;,KS.gotTopic(FilterAllHTML(rs(&quot;Intro&quot;)),180))<br \/>'&nbsp;&nbsp;&nbsp;&nbsp; LC=replace(LC,&quot;{$GetLinkUrl}&quot;,&quot;\/&quot;&amp;Y_JZDir&amp;&quot;info.asp?&quot;&amp; rs(&quot;ID&quot;) &amp;&quot;.html&quot;)<br \/>&nbsp;&nbsp;&nbsp;'\u66ff\u6362\u81ea\u5b9a\u4e49\u5b57\u6bb5 ReplaceUserDefine<br \/>&nbsp;&nbsp;&nbsp;&nbsp; LC=LFCls.ReplaceUserDefine(ChannelID,LC,RS)<br \/>&nbsp;&nbsp;&nbsp;&nbsp; SearchResult=SearchResult &amp; LC<br \/>&nbsp;&nbsp;&nbsp;I = I + 1<br \/>&nbsp;&nbsp;&nbsp;If I &gt;= MaxPerPage Then Exit Do<br \/>&nbsp;&nbsp;&nbsp;RS.MoveNext<br \/>&nbsp;&nbsp;Loop<br \/>&nbsp; End Sub<br \/>&nbsp; <br \/>'*************************************<br \/>'***********\u8fc7\u6ee4HTML******************<br \/>'*************************************<br \/>Function FilterAllHTML(strHTML)<br \/>&nbsp;'Strips the HTML tags from strHTML<br \/>&nbsp;Dim objRegExp, strOutput<br \/>&nbsp;Set objRegExp = New Regexp<br \/>&nbsp;objRegExp.IgnoreCase = True<br \/>&nbsp;objRegExp.Global = True<br \/>&nbsp;objRegExp.Pattern = &quot;&lt;.+?&gt;&quot;<br \/>&nbsp;'Replace all HTML tag matches with the empty string<br \/>&nbsp;strOutput = objRegExp.Replace(strHTML, &quot;&quot;)<br \/>&nbsp;'Replace all &lt; and &gt; with &lt; and &gt;<br \/>&nbsp;strOutput = Replace(strOutput, &quot;&amp;lt;p&amp;gt;&quot;, &quot;&quot;)<br \/>&nbsp;strOutput = Replace(strOutput, &quot;&amp;lt;\/p&amp;gt;&quot;, &quot;&quot;)<br \/>&nbsp;strOutput = Replace(strOutput, &quot;&lt;&quot;, &quot;&lt;&quot;)<br \/>&nbsp;strOutput = Replace(strOutput, &quot;&gt;&quot;, &quot;&gt;&quot;)<br \/>&nbsp;FilterAllHTML = strOutput 'Return the value of strOutput<br \/>&nbsp;Set objRegExp = Nothing<br \/>End Function<\/p>\n<p>End Class<br \/>%&gt;<\/p>\n<p>\u4e3a\u4e86\u8ba9\u663e\u793a\u7684\u7b80\u4ecb\u80fd\u6b63\u5e38\u663e\u793a \u6211\u4f7f\u7528\u4e86 FilterAllHTML \u51fd\u6570\u5c06\u6240\u6709HTML\u90fd\u7ed9\u8fc7\u6ee4\u4e86\uff01\u672c\u4eba\u4f7f\u7528\u7684<a target=\"_blank\" href=\"\/post\/36.html\">\u79d1\u8baf6.5<\/a><\/p>\n<p>\u53ef\u80fd\u4ee5\u4e0a\u7a0b\u5e8f\u6709\u9519\u8bef\u4e4b\u5904 \u8fd8\u8bf7\u5927\u867e\u4eec\u6307\u6b63 \u5171\u540c\u7814\u7a76 \u5b66\u4e60<\/p>\n","protected":false},"excerpt":{"rendered":"\u3000\u3000\u4e5f\u4e0d\u77e5\u9053\u662f\u6211\u7684\u64cd\u4f5c\u4e0d\u6b63\u786e\u8fd8\u662f\u600e\u4e48\u56de\u4e8b\uff0c\u60f3\u8ba9\u4f01\u4e1a\u9ec4\u9875\u4ee5\u5217\u8868\u7684\u5f62\u5f0f\u663e\u793a\u51fa\u6765 \u53ef\u662f\u600e\u4e48\u8c03\u6574\u4e5f\u4e0d\u884c \u7b97\u4e86\uff0c\u6700\u540e\u6253\u7b97 \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"views":252,"_links":{"self":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/36"}],"collection":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=36"}],"version-history":[{"count":0,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/36\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}