<?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: Converting html entities in AS3</title>
	<atom:link href="http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/</link>
	<description>since 2004!</description>
	<pubDate>Fri, 21 Nov 2008 21:09:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Bevan</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3168</link>
		<dc:creator>Bevan</dc:creator>
		<pubDate>Thu, 28 Aug 2008 09:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3168</guid>
		<description>Thanks for posting.
I did come across one little problem when using Air, if you pass in a null string it crashes Air (the ADL when debugging).
So I made a small change:

public function htmlEscape(str:String):String
{
	if(!str) return "";
	return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString();	
}</description>
		<content:encoded><![CDATA[<p>Thanks for posting.<br />
I did come across one little problem when using Air, if you pass in a null string it crashes Air (the ADL when debugging).<br />
So I made a small change:</p>
<p>public function htmlEscape(str:String):String<br />
{<br />
	if(!str) return &#8220;&#8221;;<br />
	return XML( new XMLNode( XMLNodeType.TEXT_NODE, str ) ).toXMLString();<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monokai</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3087</link>
		<dc:creator>Monokai</dc:creator>
		<pubDate>Fri, 25 Apr 2008 13:46:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3087</guid>
		<description>Yes, that's true, they don't belong there. Thanks for your insight!</description>
		<content:encoded><![CDATA[<p>Yes, that&#8217;s true, they don&#8217;t belong there. Thanks for your insight!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3085</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Wed, 23 Apr 2008 20:36:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3085</guid>
		<description>Monokai:  Technically the htmlUnescape function shouldnt work for strings with &lt; and &gt; in, since those characters arent valid inside an escaped string anyway.
However, you can replace those manually:
str = str.replace(/&#60;/g,"&#38;lt;").replace(/&#62;/g,"&#38;gt;")</description>
		<content:encoded><![CDATA[<p>Monokai:  Technically the htmlUnescape function shouldnt work for strings with < and > in, since those characters arent valid inside an escaped string anyway.<br />
However, you can replace those manually:<br />
str = str.replace(/&lt;/g,&#8221;&amp;lt;&#8221;).replace(/&gt;/g,&#8221;&amp;gt;&#8221;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monokai</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3084</link>
		<dc:creator>Monokai</dc:creator>
		<pubDate>Wed, 23 Apr 2008 12:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3084</guid>
		<description>This doesn't when your string contains "&#60;" characters, any ideas?</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t when your string contains &#8220;&lt;&#8221; characters, any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diabolo</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3066</link>
		<dc:creator>Diabolo</dc:creator>
		<pubDate>Wed, 02 Apr 2008 14:50:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3066</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bob</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3039</link>
		<dc:creator>bob</dc:creator>
		<pubDate>Fri, 21 Mar 2008 21:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-3039</guid>
		<description>thanks!  :mrgreen:</description>
		<content:encoded><![CDATA[<p>thanks!  <img src='http://www.razorberry.com/blog/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobnik</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-2424</link>
		<dc:creator>bobnik</dc:creator>
		<pubDate>Wed, 30 Jan 2008 03:49:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-2424</guid>
		<description>Exactly what the doctor ordered. Thank you.</description>
		<content:encoded><![CDATA[<p>Exactly what the doctor ordered. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Burt</title>
		<link>http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-2215</link>
		<dc:creator>Patrick Burt</dc:creator>
		<pubDate>Thu, 08 Nov 2007 17:35:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/#comment-2215</guid>
		<description>I don't actually need to know this right now, but I will in about a week or so. Thanks m8. :)</description>
		<content:encoded><![CDATA[<p>I don&#8217;t actually need to know this right now, but I will in about a week or so. Thanks m8. <img src='http://www.razorberry.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
</channel>
</rss>
