<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>https://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>https://jackxiang.com/post//</link>
<title><![CDATA[正则表达式的威力--轻松消除HTML代码 ]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Sat, 09 Jan 2010 12:43:32 +0000</pubDate> 
<guid>https://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	 http://www.cnblogs.com/meil/archive/2007/09/14/875874.html<br/><br/> 正则表达式再次让我震撼，寥寥数行代码就可以完成普通代码不易实现的功能，至少是实现起来比较复杂的功能。<br/><br/>一、清楚内容中的Javsscript 代码<br/><br/> 1 Function ClearJSCode(originCode)<br/> 2 <br/> 3&nbsp;&nbsp; Dim reg<br/> 4 <br/> 5&nbsp;&nbsp; set reg = New RegExp<br/> 6 <br/> 7&nbsp;&nbsp; reg.Pattern = &quot;&lt;SCRIPT[^&lt;]*&lt;/SCRIPT&gt;&quot;<br/> 8&nbsp;&nbsp; reg.IgnoreCase = True<br/> 9&nbsp;&nbsp; reg.Global = True<br/>10 <br/>11&nbsp;&nbsp; clearJSCode = reg.Replace(originCode, &quot;&quot;)<br/>12 <br/>13 End Function<br/>14 <br/> 二、清除内容中的HTML代码<br/><br/> 1 Function ClearHTMLCode(originCode)<br/> 2 <br/> 3&nbsp;&nbsp;&nbsp;&nbsp; Dim reg <br/> 4&nbsp;&nbsp;&nbsp;&nbsp; set reg = new RegExp <br/> 5 <br/> 6&nbsp;&nbsp;&nbsp;&nbsp; reg.Pattern = &quot;&lt;[^&gt;]*&gt;&quot;<br/> 7&nbsp;&nbsp;&nbsp;&nbsp; reg.IgnoreCase = True<br/> 8&nbsp;&nbsp;&nbsp;&nbsp; reg.Global = True<br/> 9&nbsp;&nbsp;<br/>10&nbsp;&nbsp;&nbsp;&nbsp; ClearHTMLCode = reg.Replace(originCode, &quot;&quot;)<br/>11 <br/>12 End Function<br/>13 <br/><br/>现在好多网站的内容都是使用采集程序生成的，使用上边的代码就可以轻松的将内容中的HTML和JS代码清除掉。
]]>
</description>
</item><item>
<link>https://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] 正则表达式的威力--轻松消除HTML代码 ]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>