<?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>Thu, 11 Mar 2010 11:46:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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&#039;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 14: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 />
&lt;script&gt; alert(&quot;Hi&quot;) &lt;/script&gt;<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(&#039;comment_text&#039;, &#039;make_clickable&#039;, 9);</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benjamin Flesch</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-10719</link>
		<dc:creator>Benjamin Flesch</dc:creator>
		<pubDate>Fri, 27 Feb 2009 13:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-10719</guid>
		<description>Nice this is exactly what I&#039;ve been searching for :-) Thank you!</description>
		<content:encoded><![CDATA[<p>Nice this is exactly what I&#039;ve been searching for <img src='http://www.theblog.ca/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-10524</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Thu, 22 Jan 2009 04:08:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-10524</guid>
		<description>You&#039;re right.  And actually, the use case for wanting to explicitly specify just one space occurs only after a new line, so we could add this rule after your rules:

$incoming_comment[&#039;comment_content&#039;] = preg_replace( &quot;/\n\s/&quot;, &quot;\n&nbsp;&quot;, $incoming_comment[&#039;comment_content&#039;] );

Thanks for the tip about the Subscribe to Comments plugin.  I&#039;ve considered it a few times, and need to psyche myself up to deal with managing bounced e-mails -- something I might eventually give in to.</description>
		<content:encoded><![CDATA[<p>You&#039;re right.  And actually, the use case for wanting to explicitly specify just one space occurs only after a new line, so we could add this rule after your rules:</p>
<p>$incoming_comment[&#039;comment_content&#039;] = preg_replace( &quot;/\n\s/&quot;, &quot;\n&amp;nbsp;&quot;, $incoming_comment[&#039;comment_content&#039;] );</p>
<p>Thanks for the tip about the Subscribe to Comments plugin.  I&#039;ve considered it a few times, and need to psyche myself up to deal with managing bounced e-mails &#8212; something I might eventually give in to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Stille</title>
		<link>http://www.theblog.ca/literal-comments/comment-page-1#comment-10519</link>
		<dc:creator>Ryan Stille</dc:creator>
		<pubDate>Wed, 21 Jan 2009 22:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.theblog.ca/literal-comments#comment-10519</guid>
		<description>Most code isn&#039;t indented with only one space - in the code I&#039;ve seen anyway, its either 2, 4, 8 spaces or a tab.   Even if a commenter uses three spaces this mod should still work.

It does increase the size of the page though (replacing a 1 character space with a 5 character code).  A minor trade off in my opinion.  If you are using compression in your webserver the difference will be negligible anyway. 

BTW since we are talking about WordPress plugins, you might want to think about the &quot;Subscribe to Comments&quot; plug in.  I just happened to think to check back on this today, to see if you had followed up on my comment, but I could have just has easily forgotten about it and never checked back.   With the Subscribe to Comments plugin I can check a box when I make a comment, then I&#039;ll get notifications when other people make comments on the same post.
http://txfx.net/code/wordpress/subscribe-to-comments/</description>
		<content:encoded><![CDATA[<p>Most code isn&#039;t indented with only one space &#8211; in the code I&#039;ve seen anyway, its either 2, 4, 8 spaces or a tab.   Even if a commenter uses three spaces this mod should still work.</p>
<p>It does increase the size of the page though (replacing a 1 character space with a 5 character code).  A minor trade off in my opinion.  If you are using compression in your webserver the difference will be negligible anyway. </p>
<p>BTW since we are talking about WordPress plugins, you might want to think about the &quot;Subscribe to Comments&quot; plug in.  I just happened to think to check back on this today, to see if you had followed up on my comment, but I could have just has easily forgotten about it and never checked back.   With the Subscribe to Comments plugin I can check a box when I make a comment, then I&#039;ll get notifications when other people make comments on the same post.<br />
<a href="http://txfx.net/code/wordpress/subscribe-to-comments/" rel="nofollow">http://txfx.net/code/wordpress/subscribe-to-comments/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
