<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FV.Zone Studio &#187; 设计.心得</title>
	<atom:link href="http://www.fvzone.com/site/category/design/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fvzone.com/site</link>
	<description>专注于CSS+XHTML标准与SEO技术!</description>
	<lastBuildDate>Wed, 20 Jan 2010 09:28:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>简单的处理留言HTML代码</title>
		<link>http://www.fvzone.com/site/comment-code.fv</link>
		<comments>http://www.fvzone.com/site/comment-code.fv#comments</comments>
		<pubDate>Fri, 01 Aug 2008 17:04:12 +0000</pubDate>
		<dc:creator>FV.Zone</dc:creator>
				<category><![CDATA[设计.心得]]></category>
		<category><![CDATA[Comment]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.fvzone.com/site/?p=23</guid>
		<description><![CDATA[这是一个简单的留言处理，功能是将HTML代码转换为实体，目前应该没有实际的用途，只是记录一下，希望以后用的着的！

&#60;?php
/*
Plugin Name: HtmlCode
Plugin URI:
Description:
Version:
Author:
Author URI:
Con... ]]></description>
			<content:encoded><![CDATA[<p>这是一个简单的留言处理，功能是将HTML代码转换为实体，目前应该没有实际的用途，只是记录一下，希望以后用的着的！</p>
<pre class="brush: php">
&lt;?php
/*
Plugin Name: HtmlCode
Plugin URI:
Description:
Version:
Author:
Author URI:
Contributor:
*/

function HtmlCode($comment) {
		$comment = nl2br(htmlspecialchars($comment));
		$comment = str_replace(&#039;&amp;lt;p&amp;gt;&#039;, &#039;&lt;p&gt;&#039;, $comment);
		$comment = str_replace(&#039;&amp;lt;/p&amp;gt;&#039;, &#039;&lt;/p&gt;&#039;, $comment);
		$comment = str_replace(&#039;&amp;lt;br /&amp;gt;&#039;, &#039;&lt;br /&gt;&#039;, $comment);
		echo $comment;
}

add_filter(&#039;comment_text&#039;, &#039;HtmlCode&#039;, 999);
add_filter(&#039;comment_excerpt&#039;, &#039;HtmlCode&#039;, -999);

?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.fvzone.com/site/comment-code.fv/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
