<?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"
	>
<channel>
	<title>Comments on: WordPress 1.5 Ampersand Escaping Bug</title>
	<atom:link href="http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/feed/" rel="self" type="application/rss+xml" />
	<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/</link>
	<description>Changing the world, one person at a time...</description>
	<pubDate>Tue, 14 Oct 2008 02:01:49 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: G.M. Knowles</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-91982</link>
		<dc:creator>G.M. Knowles</dc:creator>
		<pubDate>Sun, 04 Jun 2006 20:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-91982</guid>
		<description>Has anyone seen this similar bug in 2.02? My issue ampersand in a category causes invalid xml whitespace area.</description>
		<content:encoded><![CDATA[<p>Has anyone seen this similar bug in 2.02? My issue ampersand in a category causes invalid xml whitespace area.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-9298</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Sun, 27 Mar 2005 16:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-9298</guid>
		<description>weh, komentator ketahuan pake os dan browsernya... :D</description>
		<content:encoded><![CDATA[<p>weh, komentator ketahuan pake os dan browsernya&#8230; <img src='http://priyadi.net/smilies/yahoo_bigsmile.gif' alt='&#58;&#68;' class='wp-smiley' width='18' height='18' title='&#58;&#68;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andrian</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5207</link>
		<dc:creator>andrian</dc:creator>
		<pubDate>Mon, 28 Feb 2005 05:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5207</guid>
		<description>loh ko halaman depan gw malah gak tampil apa2, blank putih toh, ini masih di lokal saya blom d upload</description>
		<content:encoded><![CDATA[<p>loh ko halaman depan gw malah gak tampil apa2, blank putih toh, ini masih di lokal saya blom d upload</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: priyadi</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5058</link>
		<dc:creator>priyadi</dc:creator>
		<pubDate>Sat, 26 Feb 2005 07:11:07 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5058</guid>
		<description>#10, #11: iya tadi lagi ngoprek template, saya hilangkan deh kalau itu mengganggu. nanti saya cari cara lain untuk promo yang tidak intrusif :)</description>
		<content:encoded><![CDATA[<p>#10, #11: iya tadi lagi ngoprek template, saya hilangkan deh kalau itu mengganggu. nanti saya cari cara lain untuk promo yang tidak intrusif <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaim</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5057</link>
		<dc:creator>jaim</dc:creator>
		<pubDate>Sat, 26 Feb 2005 07:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5057</guid>
		<description>upsss... saya blom refresh rupanya, ternyata sudah ada lagi .. :-(</description>
		<content:encoded><![CDATA[<p>upsss&#8230; saya blom refresh rupanya, ternyata sudah ada lagi .. <img src='http://priyadi.net/smilies/yahoo_sad.gif' alt='&#58;&#45;&#40;' class='wp-smiley' width='18' height='18' title='&#58;&#45;&#40;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaim</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5055</link>
		<dc:creator>jaim</dc:creator>
		<pubDate>Sat, 26 Feb 2005 06:58:40 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5055</guid>
		<description>Satu hal yang terasa lebih manusiawi di site ini setelah upgrade itu apa coba? sy ndak ngeliat ada "Pesan untuk ganti pake firefox..." :-)

Pesan ini bikin mehe, bukan apa-apa, saya browsing postingan blog itu pake Desktop RSS aggregator, jarang saya punya kesempatan buat blogwalking dengan browser. Masalahnya hampir semua RSS aggregator yang ada di windows itu make embedded HTML engine punyanya IE.

moga-moga itu pesan ndak perlu dimunculin lagi deh. saran yang baik sebenarnya sih, cuman... agak mengganggu kenyamanan.. :-)</description>
		<content:encoded><![CDATA[<p>Satu hal yang terasa lebih manusiawi di site ini setelah upgrade itu apa coba? sy ndak ngeliat ada &#8220;Pesan untuk ganti pake firefox&#8230;&#8221; <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#45;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#45;&#41;' /></p>
<p>Pesan ini bikin mehe, bukan apa-apa, saya browsing postingan blog itu pake Desktop RSS aggregator, jarang saya punya kesempatan buat blogwalking dengan browser. Masalahnya hampir semua RSS aggregator yang ada di windows itu make embedded HTML engine punyanya IE.</p>
<p>moga-moga itu pesan ndak perlu dimunculin lagi deh. saran yang baik sebenarnya sih, cuman&#8230; agak mengganggu kenyamanan.. <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#45;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#45;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: priyadi</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5045</link>
		<dc:creator>priyadi</dc:creator>
		<pubDate>Fri, 25 Feb 2005 19:10:19 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5045</guid>
		<description>#5: I'm not even sure if this is the correct place to fix that, the problem probably lies somewhere else. I haven't checked the wordpress source code thoroughly.

#6: Actually, I'm not very fond of this 'dualism', in this context and especially in comments. It should be either we escape all data, or we don't escape them at all, or else we would have trouble unescaping. I would prefer escaping everything to be sure we are generating correct HTML. Comment posters can copy paste from character map if they really need to insert funny characters. If they need formatting, use something like wiki syntax, bbcode or markdown. No need to use hacks like balancetags. OK, enough rambling for now :)

#7: That's the real world example why I don't like this escaping 'dualism'. It is very hard to insert HTML in comments :)</description>
		<content:encoded><![CDATA[<p>#5: I&#8217;m not even sure if this is the correct place to fix that, the problem probably lies somewhere else. I haven&#8217;t checked the wordpress source code thoroughly.</p>
<p>#6: Actually, I&#8217;m not very fond of this &#8216;dualism&#8217;, in this context and especially in comments. It should be either we escape all data, or we don&#8217;t escape them at all, or else we would have trouble unescaping. I would prefer escaping everything to be sure we are generating correct HTML. Comment posters can copy paste from character map if they really need to insert funny characters. If they need formatting, use something like wiki syntax, bbcode or markdown. No need to use hacks like balancetags. OK, enough rambling for now <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
<p>#7: That&#8217;s the real world example why I don&#8217;t like this escaping &#8216;dualism&#8217;. It is very hard to insert HTML in comments <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal Campbell</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5043</link>
		<dc:creator>Dougal Campbell</dc:creator>
		<pubDate>Fri, 25 Feb 2005 19:01:00 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5043</guid>
		<description>Oops again. Should have recommended wp_specialchars() instead of htmlentities2(). Matt already put the fix in for this, so it shouldn't be an issue with WP 1.5.1.
</description>
		<content:encoded><![CDATA[<p>Oops again. Should have recommended wp_specialchars() instead of htmlentities2(). Matt already put the fix in for this, so it shouldn&#8217;t be an issue with WP 1.5.1.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal Campbell</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5040</link>
		<dc:creator>Dougal Campbell</dc:creator>
		<pubDate>Fri, 25 Feb 2005 17:06:37 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5040</guid>
		<description>Oops. Of course my examples were interpreted, so don't show the problem. Unless you view the source of my previous comment :)
</description>
		<content:encoded><![CDATA[<p>Oops. Of course my examples were interpreted, so don&#8217;t show the problem. Unless you view the source of my previous comment <img src='http://priyadi.net/smilies/yahoo_smiley.gif' alt='&#58;&#41;' class='wp-smiley' width='18' height='18' title='&#58;&#41;' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dougal Campbell</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5039</link>
		<dc:creator>Dougal Campbell</dc:creator>
		<pubDate>Fri, 25 Feb 2005 17:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5039</guid>
		<description>Actually, I recommend using htmlentities2(), which will add encoding for entities, but only if they are not already encoded. 

For example, if you add a properly encoded url to your link manager, e.g. "http://example.com/?q=foo&#38;z=bar", htmlspecialchars will encode the amp, giving you:

 http://example.com/?q=foo&#38;amp;z=bar

The htmlentities2() function detects already-encoded entities, and leaves them alone. (it's found in wp-includes/functions.php, and the code came from php.net, BTW)


</description>
		<content:encoded><![CDATA[<p>Actually, I recommend using htmlentities2(), which will add encoding for entities, but only if they are not already encoded. </p>
<p>For example, if you add a properly encoded url to your link manager, e.g. &#8220;http://example.com/?q=foo&amp;z=bar&#8221;, htmlspecialchars will encode the amp, giving you:</p>
<p> <a href="http://example.com/?q=foo&amp;amp;z=bar" rel="nofollow">http://example.com/?q=foo&amp;amp;z=bar</a></p>
<p>The htmlentities2() function detects already-encoded entities, and leaves them alone. (it&#8217;s found in wp-includes/functions.php, and the code came from php.net, BTW)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Stewart</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5036</link>
		<dc:creator>Doug Stewart</dc:creator>
		<pubDate>Fri, 25 Feb 2005 17:00:06 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5036</guid>
		<description>Have you considered submitting this bug to the official WP SVN repo?</description>
		<content:encoded><![CDATA[<p>Have you considered submitting this bug to the official WP SVN repo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hendri Syahrial</title>
		<link>http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5035</link>
		<dc:creator>Hendri Syahrial</dc:creator>
		<pubDate>Fri, 25 Feb 2005 16:48:11 +0000</pubDate>
		<guid isPermaLink="false">http://priyadi.net/archives/2005/02/25/wordpress-15-bugs/#comment-5035</guid>
		<description>Thanks mas</description>
		<content:encoded><![CDATA[<p>Thanks mas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
