<?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: How to disable HTML in WordPress comments</title>
	<atom:link href="http://www.theblog.ca/literal-comments/feed" rel="self" type="application/rss+xml" />
	<link>http://www.theblog.ca/literal-comments</link>
	<description>Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more</description>
	<lastBuildDate>Fri, 10 Feb 2012 05:51:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: omar</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-18227</link>
		<dc:creator>omar</dc:creator>
		<pubDate>Mon, 06 Feb 2012 21:09:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-18227</guid>
		<description>thanks man, i was looking for this and now found it on your blog.</description>
		<content:encoded><![CDATA[<p>thanks man, i was looking for this and now found it on your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-16156</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Mon, 04 Jul 2011 16:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-16156</guid>
		<description>using the photocrati theme on this site I have not been able to get the plugin to work?

&lt;strong&gt;Reply from Peter: As far as I know, there isn&#039;t anything theme-specific in this plugin, unless the theme has for some reason disabled common WordPress code hooks (which is very rare).&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>using the photocrati theme on this site I have not been able to get the plugin to work?</p>
<p><strong>Reply from Peter: As far as I know, there isn&#8217;t anything theme-specific in this plugin, unless the theme has for some reason disabled common WordPress code hooks (which is very rare).</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jahangir</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-15097</link>
		<dc:creator>Jahangir</dc:creator>
		<pubDate>Fri, 24 Dec 2010 13:54:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-15097</guid>
		<description>Thanks for a great plugin. Using it on my site :)</description>
		<content:encoded><![CDATA[<p>Thanks for a great plugin. Using it on my site <img src='http://www.theblog.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carrie</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-12555</link>
		<dc:creator>Carrie</dc:creator>
		<pubDate>Wed, 24 Feb 2010 16:56:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-12555</guid>
		<description>My blogs as you can see on my name are riddled with comment like that which include html links etc. This plugin of yours is a lifesaver.

One question though, would it fixed old comments as well?

&lt;strong&gt;Reply from Peter: Unfortunately, it does not fix old comments, but you could modify the plugin to only run when comments are displayed (thus fixing all comments).  To do that, you would edit the plugin, remove the plc_comment_post function (and the associated filter at the bottom) and then replace the contents of the plc_comment_display function with:

        $comment_to_display = htmlspecialchars( $comment_to_display );
	return $comment_to_display;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>My blogs as you can see on my name are riddled with comment like that which include html links etc. This plugin of yours is a lifesaver.</p>
<p>One question though, would it fixed old comments as well?</p>
<p><strong>Reply from Peter: Unfortunately, it does not fix old comments, but you could modify the plugin to only run when comments are displayed (thus fixing all comments).  To do that, you would edit the plugin, remove the plc_comment_post function (and the associated filter at the bottom) and then replace the contents of the plc_comment_display function with:</p>
<p>        $comment_to_display = htmlspecialchars( $comment_to_display );<br />
	return $comment_to_display;</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-11976</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Mon, 07 Dec 2009 23:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-11976</guid>
		<description>I just discovered that WP executes javascript in comments but quickly found your plugin to solve this issue. Thanks!</description>
		<content:encoded><![CDATA[<p>I just discovered that WP executes javascript in comments but quickly found your plugin to solve this issue. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andreas</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-11560</link>
		<dc:creator>Andreas</dc:creator>
		<pubDate>Thu, 10 Sep 2009 20:06:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-11560</guid>
		<description>Hi Peter, thank you for this nice Plugin :)</description>
		<content:encoded><![CDATA[<p>Hi Peter, thank you for this nice Plugin <img src='http://www.theblog.ca/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bobby</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-11423</link>
		<dc:creator>Bobby</dc:creator>
		<pubDate>Wed, 12 Aug 2009 19:14:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-11423</guid>
		<description>Does this still work? I uploaded the plugin to my plugin folder and pictures and html still is posted to comments. Any ideas?

&lt;strong&gt;Reply from Peter: Yup, as of now it&#039;s been tested to work up to WordPress 2.8.  This may be a silly question, but did you actually activate the plugin?&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>Does this still work? I uploaded the plugin to my plugin folder and pictures and html still is posted to comments. Any ideas?</p>
<p><strong>Reply from Peter: Yup, as of now it&#8217;s been tested to work up to WordPress 2.8.  This may be a silly question, but did you actually activate the plugin?</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-11407</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Sun, 09 Aug 2009 08:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-11407</guid>
		<description>Thanks a lot for creating this plug-in. It&#039;s very helpful to have this feature, and yours was the only one I found after searching for some time. Thanks again!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for creating this plug-in. It&#8217;s very helpful to have this feature, and yours was the only one I found after searching for some time. Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: What is Name ?</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-10988</link>
		<dc:creator>What is Name ?</dc:creator>
		<pubDate>Tue, 12 May 2009 13:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-10988</guid>
		<description>This is Script Testing On ur site.
&lt;script&gt;alert(&quot;Hi&quot;)&lt;/script&gt;
&lt;img href=&quot;http://www.google.co.in/intl/en_com/images/logo_plain.png&quot;&gt;Google&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This is Script Testing On ur site.<br />
<script>alert(&quot;Hi&quot;)</script><br />
&lt;img href=&quot;http://www.google.co.in/intl/en_com/images/logo_plain.png&quot;&gt;Google&lt;/a&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Exam Philippines</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-10867</link>
		<dc:creator>Exam Philippines</dc:creator>
		<pubDate>Fri, 10 Apr 2009 17:56:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-10867</guid>
		<description>cool! thanks for sharing. by the way, how can i disable the URLs in my comments?

&lt;strong&gt;Reply from Peter: If you don&#039;t want to display what people write in the &quot;URL&quot; field, you can just modify you theme&#039;s relevant template for that.  As for disabling the auto-linking, that&#039;s done by WordPress in a function called &quot;make_clickable&quot;; by default you can add this line to a plugin:

remove_filter(&#039;comment_text&#039;, &#039;make_clickable&#039;, 9);&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>cool! thanks for sharing. by the way, how can i disable the URLs in my comments?</p>
<p><strong>Reply from Peter: If you don&#8217;t want to display what people write in the &#8220;URL&#8221; field, you can just modify you theme&#8217;s relevant template for that.  As for disabling the auto-linking, that&#8217;s done by WordPress in a function called &#8220;make_clickable&#8221;; by default you can add this line to a plugin:</p>
<p>remove_filter(&#8216;comment_text&#8217;, &#8216;make_clickable&#8217;, 9);</strong></p>
]]></content:encoded>
	</item>
</channel>
</rss>

