<?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: RobLab - A script to remove all HTML tags</title>
	<atom:link href="http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/</link>
	<description>Web development and Internet trends</description>
	<pubDate>Fri, 05 Dec 2008 10:32:01 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1469</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Sun, 30 Oct 2005 11:13:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1469</guid>
		<description>Hakan,

Absolutely, that's a nice approach!

Sorry about the code stripping, good that you made it with your second comment. 
:-)</description>
		<content:encoded><![CDATA[<p>Hakan,</p>
<p>Absolutely, that&#8217;s a nice approach!</p>
<p>Sorry about the code stripping, good that you made it with your second comment.<br />
 <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan Bilgin</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1466</link>
		<dc:creator>Hakan Bilgin</dc:creator>
		<pubDate>Sun, 30 Oct 2005 00:43:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1466</guid>
		<description>Hmm...My regular expression was deleted in the submission... a new try?

String.prototype.stripHTML	= function() {return this.replace(/&#60;.*?&#62;/g, '');}</description>
		<content:encoded><![CDATA[<p>Hmm&#8230;My regular expression was deleted in the submission&#8230; a new try?</p>
<p>String.prototype.stripHTML	= function() {return this.replace(/&lt;.*?&gt;/g, &#8221;);}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hakan Bilgin</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1465</link>
		<dc:creator>Hakan Bilgin</dc:creator>
		<pubDate>Sun, 30 Oct 2005 00:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-1465</guid>
		<description>I prefer extending the string object with a new method:

String.prototype.stripHTML	= function() {return this.replace(//g, '');}

Exampe:

var foo = 'hello &lt;b&gt;robert&lt;/b&gt;...';

alert(foo.stripHTML());

Less code, more handy...
/hbi</description>
		<content:encoded><![CDATA[<p>I prefer extending the string object with a new method:</p>
<p>String.prototype.stripHTML	= function() {return this.replace(//g, &#8221;);}</p>
<p>Exampe:</p>
<p>var foo = &#8216;hello <b>robert</b>&#8230;&#8217;;</p>
<p>alert(foo.stripHTML());</p>
<p>Less code, more handy&#8230;<br />
/hbi</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-732</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Wed, 27 Jul 2005 06:53:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-732</guid>
		<description>Lim,

Ah, now I know what you mean. Yes, that looked a bit misleading, didn't it? :-)

It's corrected now, and reads:
&lt;code&gt;&#38;lt; is replaced with &#60; and &#38;gt; is replaced with &#62;&lt;/code&gt;

And yes, my commenting system can do some weird &lt;acronym title="HyperText Markup Language"&gt;HTML&lt;/acronym&gt; escaping things sometimes, sorry. :-)</description>
		<content:encoded><![CDATA[<p>Lim,</p>
<p>Ah, now I know what you mean. Yes, that looked a bit misleading, didn&#8217;t it? <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>It&#8217;s corrected now, and reads:<br />
<code>&amp;lt; is replaced with &lt; and &amp;gt; is replaced with &gt;</code></p>
<p>And yes, my commenting system can do some weird <acronym title="HyperText Markup Language"></acronym><acronym title="HyperText Markup Language">HTML</acronym> escaping things sometimes, sorry. <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lim Chee Aun</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-730</link>
		<dc:creator>Lim Chee Aun</dc:creator>
		<pubDate>Wed, 27 Jul 2005 01:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-730</guid>
		<description>Uh, not I mean, there's one line there sounds a bit weird:
i.e. &#60; is replaced with &#60; and &#62; is replaced with &#62;

Somehow your commenting system here seems to have problems with HTML entities.. :-) Sorry</description>
		<content:encoded><![CDATA[<p>Uh, not I mean, there&#8217;s one line there sounds a bit weird:<br />
i.e. &lt; is replaced with &lt; and &gt; is replaced with &gt;</p>
<p>Somehow your commenting system here seems to have problems with <acronym title="HyperText Markup Language">HTML</acronym> entities.. <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> Sorry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-728</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Tue, 26 Jul 2005 12:26:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-728</guid>
		<description>Lim,

Thanks for your comment.

If you mean that the source code of the example page was invalid due to unescaped ampersands, you're completely right. I've fixed that now.
Thanks!</description>
		<content:encoded><![CDATA[<p>Lim,</p>
<p>Thanks for your comment.</p>
<p>If you mean that the source code of the example page was invalid due to unescaped ampersands, you&#8217;re completely right. I&#8217;ve fixed that now.<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lim Chee Aun</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-727</link>
		<dc:creator>Lim Chee Aun</dc:creator>
		<pubDate>Tue, 26 Jul 2005 12:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-727</guid>
		<description>If I'm not mistaken, you forgot to put more &lt;code&gt;&#38;&lt;/code&gt;s to the &#38;'s, for the code example on that page:

&lt;code&gt;/* 
This line is optional, it replaces escaped brackets with real ones, 
i.e.  is replaced with &#62;
*/&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>If I&#8217;m not mistaken, you forgot to put more <code>&amp;</code>s to the &amp;&#8217;s, for the code example on that page:</p>
<p><code>/*<br />
This line is optional, it replaces escaped brackets with real ones,<br />
i.e.  is replaced with &gt;<br />
*/</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Nyman</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-726</link>
		<dc:creator>Robert Nyman</dc:creator>
		<pubDate>Tue, 26 Jul 2005 11:48:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-726</guid>
		<description>Hi Egor,

That was pretty much the reason for me writing this script to begin with. I needed to extract some text without formatting and it was stored with &lt;acronym title="HyperText Markup language"&gt;HTML&lt;/acronym&gt; tags mixed in it.

Hopefully it helps you out when needed! :-)</description>
		<content:encoded><![CDATA[<p>Hi Egor,</p>
<p>That was pretty much the reason for me writing this script to begin with. I needed to extract some text without formatting and it was stored with <acronym title="HyperText Markup language"></acronym><acronym title="HyperText Markup Language">HTML</acronym> tags mixed in it.</p>
<p>Hopefully it helps you out when needed! <img src='http://www.robertnyman.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Egor Kloos</title>
		<link>http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-725</link>
		<dc:creator>Egor Kloos</dc:creator>
		<pubDate>Tue, 26 Jul 2005 11:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.robertnyman.com/2005/07/26/roblab-a-script-to-remove-all-html-tags/#comment-725</guid>
		<description>This always makes me wonder how I store my own content. WYSIWYG editors in CMS systems like FCKEditor asume that content is always stored with it's layout formatting when in many cases this in not desired. Handy script, I'll give it a look see.</description>
		<content:encoded><![CDATA[<p>This always makes me wonder how I store my own content. <acronym title="What You See Is What You Get">WYSIWYG</acronym> editors in <acronym title="Content Management System">CMS</acronym> systems like FCKEditor asume that content is always stored with it&#8217;s layout formatting when in many cases this in not desired. Handy script, I&#8217;ll give it a look see.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
