<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Adding allowed HTML tags for WP comments</title>
	<atom:link href="http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/</link>
	<description>Web, English, 中国, and various geekosity</description>
	<lastBuildDate>Sat, 11 Feb 2012 12:05:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Wow</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-345618</link>
		<dc:creator>Wow</dc:creator>
		<pubDate>Tue, 11 Jan 2011 16:23:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-345618</guid>
		<description>Thanx! =-) &lt;a href=&quot;http://ya.com&quot; rel=&quot;nofollow&quot;&gt;WO&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Thanx! =-) <a href="http://ya.com" rel="nofollow">WO</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-318336</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 23 Aug 2009 05:38:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-318336</guid>
		<description>I send you and your visitors my best greetings.</description>
		<content:encoded><![CDATA[<p>I send you and your visitors my best greetings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-6015</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 27 Sep 2005 22:01:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-6015</guid>
		<description>@oso, thanks for the tip. I&#039;ve edited the post so that the quote marks are defined with entity codes (&#039;), which will hopefully make it safe to copy and paste.</description>
		<content:encoded><![CDATA[<p>@oso, thanks for the tip. I’ve edited the post so that the quote marks are defined with entity codes (&amp;#39;), which will hopefully make it safe to copy and paste.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oso</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-5990</link>
		<dc:creator>oso</dc:creator>
		<pubDate>Tue, 27 Sep 2005 18:15:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-5990</guid>
		<description>Oops - I also wanted to add for future readers - don&#039;t copy and paste the code you see above because the quote marks got converted into curly quotes which will give you PHP errors. Better to hand type it in.</description>
		<content:encoded><![CDATA[<p>Oops — I also wanted to add for future readers — don’t copy and paste the code you see above because the quote marks got converted into curly quotes which will give you PHP errors. Better to hand type it in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oso</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-5988</link>
		<dc:creator>oso</dc:creator>
		<pubDate>Tue, 27 Sep 2005 18:07:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-5988</guid>
		<description>Just wanted to say thanks for this write up. Really helped me out.</description>
		<content:encoded><![CDATA[<p>Just wanted to say thanks for this write up. Really helped me out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Dog</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-3645</link>
		<dc:creator>The Dog</dc:creator>
		<pubDate>Tue, 12 Apr 2005 04:08:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-3645</guid>
		<description>Josh
Great help! Thank you! I used your advice to figure out how and where to add in an img tag for comments. It works great.

&#039;img&#039; =&gt; array(&#039;src&#039; =&gt; array()), </description>
		<content:encoded><![CDATA[<p>Josh<br />
Great help! Thank you! I used your advice to figure out how and where to add in an img tag for comments. It works great.</p>
<p>‘img’ =&gt; array(‘src’ =&gt; array()),</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-895</link>
		<dc:creator>Ulf</dc:creator>
		<pubDate>Sun, 30 Jan 2005 08:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-895</guid>
		<description>Nice write-up!

// Ulf Harnhammar (kses guy)</description>
		<content:encoded><![CDATA[<p>Nice write-up!</p>
<p>// Ulf Harnhammar (kses guy)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-171</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Sat, 30 Oct 2004 03:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-171</guid>
		<description>Dale: Yeah, I&#039;ve been using it ever since this WordPress site went public, so it&#039;s been a while now, but information was still a little thin on the ground! It&#039;s pretty snazzy.

Indranil: You&#039;re welcome! Interesting list, there ;)  Hehehe.</description>
		<content:encoded><![CDATA[<p>Dale: Yeah, I’ve been using it ever since this WordPress site went public, so it’s been a while now, but information was still a little thin on the ground! It’s pretty snazzy.</p>
<p>Indranil: You’re welcome! Interesting list, there ;)  Hehehe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Indranil</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-170</link>
		<dc:creator>Indranil</dc:creator>
		<pubDate>Sat, 30 Oct 2004 01:29:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-170</guid>
		<description>Thanks for the write-up man. Much appreciated.
&lt;ul&gt;
  &lt;li&gt;Thank&lt;/li&gt;
  &lt;li&gt;you&lt;/li&gt;
&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<p>Thanks for the write-up man. Much appreciated.</p>
<ul>
<li>Thank</li>
<li>you</li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: dale</title>
		<link>http://josh.st/2004/10/30/adding-allowed-html-tags-for-wp-comments/#comment-169</link>
		<dc:creator>dale</dc:creator>
		<pubDate>Sat, 30 Oct 2004 00:59:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.joahua.com/blog/2004/10/30/adding-allowed-html-tags-for-wp-comments#comment-169</guid>
		<description>Heh. You should have asked me. I&#039;ve been using kses behind the scenes for a while now. Great little script. The SF page can be found &lt;a href=&quot;http://sourceforge.net/projects/kses/&quot;&gt;here&lt;/a&gt;. Although I am using the class based version instead of the function based one in wordpress. It is very nice to work with.

The following is from the class documentation
&lt;blockquote&gt;Parse($string = &quot;&quot;)
   Performs the actual parsing of the HTML/HTML, removing
   tags and attributes that aren&#039;t allowed.

Protocols()
   Accepts either a string or an array of protocols, and
   calls $this-&gt;AddProtocol appropriately.  Protocols
   can optionally end in &quot;:&quot;.

AddProtocol($protocol = &quot;&quot;)
   Accepts a single string as a protocol and attempts to
   place it in the list of allowed protocols.  The protocol
   can optionally end in &quot;:&quot;.

AddHTML($tag = &quot;&quot;, $attribs = array())
   Accepts a string indicating an allowed tag, and a list
   of acceptable attributes for the specific tag, along
   with modifiers for that attribute. See the kses
   documentation for details.

   Additional calls to this method using the same tag will
   overwrite the existing tag definition.
&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Heh. You should have asked me. I’ve been using kses behind the scenes for a while now. Great little script. The SF page can be found <a href="http://sourceforge.net/projects/kses/">here</a>. Although I am using the class based version instead of the function based one in wordpress. It is very nice to work with.</p>
<p>The following is from the class documentation</p>
<blockquote><p>Parse($string = “”)<br />
   Performs the actual parsing of the HTML/HTML, removing<br />
   tags and attributes that aren’t allowed.</p>
<p>Protocols()<br />
   Accepts either a string or an array of protocols, and<br />
   calls $this-&gt;AddProtocol appropriately.  Protocols<br />
   can optionally end in “:”.</p>
<p>AddProtocol($protocol = “”)<br />
   Accepts a single string as a protocol and attempts to<br />
   place it in the list of allowed protocols.  The protocol<br />
   can optionally end in “:”.</p>
<p>AddHTML($tag = “”, $attribs = array())<br />
   Accepts a string indicating an allowed tag, and a list<br />
   of acceptable attributes for the specific tag, along<br />
   with modifiers for that attribute. See the kses<br />
   documentation for details.</p>
<p>   Additional calls to this method using the same tag will<br />
   overwrite the existing tag definition.
</p></blockquote>
]]></content:encoded>
	</item>
</channel>
</rss>

