<?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: Strip Html Tags &#8211; with allowable tags</title>
	<atom:link href="http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Sun, 14 Mar 2010 14:43:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Andrei Ionescu</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1814</link>
		<dc:creator>Andrei Ionescu</dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1814</guid>
		<description>Thanks for your fix. Jörg. You mean line 58 in the whole source file but I guess it is line 36 in the code presented in the article.</description>
		<content:encoded><![CDATA[<p>Thanks for your fix. Jörg. You mean line 58 in the whole source file but I guess it is line 36 in the code presented in the article.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jörg</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1812</link>
		<dc:creator>Jörg</dc:creator>
		<pubDate>Sat, 06 Feb 2010 22:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1812</guid>
		<description>Got it: replace line 58 with this
&lt;pre lang=&quot;actionscript&quot;&gt;var tmpRE:RegExp = new RegExp(&quot;([\+\*\$\/\?])&quot;,&quot;g&quot;);&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Got it: replace line 58 with this</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> tmpRE:RegExp = <span style="color: #000000; font-weight: bold;">new</span> RegExp<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;([<span style="color: #000099; font-weight: bold;">\+</span><span style="color: #000099; font-weight: bold;">\*</span><span style="color: #000099; font-weight: bold;">\$</span><span style="color: #000099; font-weight: bold;">\/</span><span style="color: #000099; font-weight: bold;">\?</span>])&quot;</span>,<span style="color: #ff0000;">&quot;g&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Jörg</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1810</link>
		<dc:creator>Jörg</dc:creator>
		<pubDate>Sat, 06 Feb 2010 22:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1810</guid>
		<description>Hi!
I found a strange behaviour in the code:

If you try to strip the &#039;a&#039; tags in the following String
&lt;pre&gt;
&lt;a href=&#039;http://google.com/?i&#039; rel=&quot;nofollow&quot;&gt;google.com/?i&lt;/a&gt;
&lt;/pre&gt;
you will get
&lt;pre&gt;
&lt;a HREF=&quot;http://google.com/?i&quot; rel=&quot;nofollow&quot;&gt;google.com/?ig
&lt;/pre&gt;

It&#039;s because of the &quot;?&quot; character I think, but so far I have no solution for it. I will post back if I find one.

Cheers</description>
		<content:encoded><![CDATA[<p>Hi!<br />
I found a strange behaviour in the code:</p>
<p>If you try to strip the &#8216;a&#8217; tags in the following String</p>
<pre>
&lt;a href='http://google.com/?i' rel="nofollow"&gt;google.com/?i&lt;/a&gt;
</pre>
<p>you will get</p>
<pre>
&lt;a HREF="http://google.com/?i" rel="nofollow"&gt;google.com/?ig
</pre>
<p>It&#8217;s because of the &#8220;?&#8221; character I think, but so far I have no solution for it. I will post back if I find one.</p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoav</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1792</link>
		<dc:creator>yoav</dc:creator>
		<pubDate>Sat, 23 Jan 2010 21:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1792</guid>
		<description>Glad I could help evolve it. The changes you made are great because it lets you specify p as an allowable tag while using attributes like style=&quot;color:#0000FF;&quot;, but in the specific application I&#039;m using it in I need stricter control. I can&#039;t reproduce the closing tags not being removed issue though. 

My changes still work for me in cases where you just want certain bare tags to get through. I guess it depends on the situation. Thanks for letting me know, also the working example you posted is very useful.</description>
		<content:encoded><![CDATA[<p>Glad I could help evolve it. The changes you made are great because it lets you specify p as an allowable tag while using attributes like style=&#8221;color:#0000FF;&#8221;, but in the specific application I&#8217;m using it in I need stricter control. I can&#8217;t reproduce the closing tags not being removed issue though. </p>
<p>My changes still work for me in cases where you just want certain bare tags to get through. I guess it depends on the situation. Thanks for letting me know, also the working example you posted is very useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei Ionescu</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1791</link>
		<dc:creator>Andrei Ionescu</dc:creator>
		<pubDate>Sat, 23 Jan 2010 17:43:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1791</guid>
		<description>Hello Yoav! Just fIxed my code and created a working application. Tested your solution and found that sometimes it doesn&#039;t remove the closing tags (&lt;/iframe&gt;, for example). So I found another better way fixing the bug you discovered. Thank you very much for your real help.</description>
		<content:encoded><![CDATA[<p>Hello Yoav! Just fIxed my code and created a working application. Tested your solution and found that sometimes it doesn&#8217;t remove the closing tags (&lt;/iframe&gt;, for example). So I found another better way fixing the bug you discovered. Thank you very much for your real help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei Ionescu</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1789</link>
		<dc:creator>Andrei Ionescu</dc:creator>
		<pubDate>Fri, 22 Jan 2010 22:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1789</guid>
		<description>Thanks Yoav! I&#039;ll fix my code too.</description>
		<content:encoded><![CDATA[<p>Thanks Yoav! I&#8217;ll fix my code too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoav</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1788</link>
		<dc:creator>yoav</dc:creator>
		<pubDate>Fri, 22 Jan 2010 20:01:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1788</guid>
		<description>Here I fixed it http://fightskillz.com/2010/01/flexactionscript-3-0-strip-html-tags-function/</description>
		<content:encoded><![CDATA[<p>Here I fixed it <a href="http://fightskillz.com/2010/01/flexactionscript-3-0-strip-html-tags-function/" rel="nofollow">http://fightskillz.com/2010/01/flexactionscript-3-0-strip-html-tags-function/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoav</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1787</link>
		<dc:creator>yoav</dc:creator>
		<pubDate>Fri, 22 Jan 2010 19:04:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1787</guid>
		<description>the function doesn&#039;t work in that if you specify i as an allowable tag, it also allows iframe because the regular expressions see the i in iframe and consider it safe. this is incredibly insecure. i can&#039;t believe in a year and a half nobody noticed this.</description>
		<content:encoded><![CDATA[<p>the function doesn&#8217;t work in that if you specify i as an allowable tag, it also allows iframe because the regular expressions see the i in iframe and consider it safe. this is incredibly insecure. i can&#8217;t believe in a year and a half nobody noticed this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mac</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1782</link>
		<dc:creator>mac</dc:creator>
		<pubDate>Tue, 19 Jan 2010 03:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1782</guid>
		<description>I love you!
I soooo needed that piece of code!

Thanks</description>
		<content:encoded><![CDATA[<p>I love you!<br />
I soooo needed that piece of code!</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.flexer.info/2008/04/08/strip-html-tags-with-allowable-tags/comment-page-1/#comment-1778</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 Jan 2010 09:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=130#comment-1778</guid>
		<description>This is awesome m8! thnx very much!
Helps when using the mailto: urlRequest since taged htmlText doesn&#039;t display nicelly or at all!</description>
		<content:encoded><![CDATA[<p>This is awesome m8! thnx very much!<br />
Helps when using the mailto: urlRequest since taged htmlText doesn&#8217;t display nicelly or at all!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
