<?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</title>
	<atom:link href="http://sugarmaplesoftware.com/25/strip-html-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://sugarmaplesoftware.com/25/strip-html-tags/</link>
	<description>thoughts yet to be boiled down to their essence</description>
	<lastBuildDate>Wed, 18 Nov 2009 13:31:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Hasnat</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1424</link>
		<dc:creator>Hasnat</dc:creator>
		<pubDate>Wed, 18 Nov 2009 13:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1424</guid>
		<description>@Daniel
you cannot add less than greater than signs in the comment here</description>
		<content:encoded><![CDATA[<p>@Daniel<br />
you cannot add less than greater than signs in the comment here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashley</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1419</link>
		<dc:creator>Ashley</dc:creator>
		<pubDate>Wed, 04 Nov 2009 06:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1419</guid>
		<description>How many times have you tried before the first fast program crashed? I had used the same one but it doesnt resulted in any crashes.</description>
		<content:encoded><![CDATA[<p>How many times have you tried before the first fast program crashed? I had used the same one but it doesnt resulted in any crashes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1098</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 09 Aug 2008 09:38:49 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1098</guid>
		<description>Shit... You will find it out..</description>
		<content:encoded><![CDATA[<p>Shit&#8230; You will find it out..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1097</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 09 Aug 2008 09:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1097</guid>
		<description>StringWithFormat:@&quot;&quot;</description>
		<content:encoded><![CDATA[<p>StringWithFormat:@&#8221;"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1096</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 09 Aug 2008 09:36:55 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1096</guid>
		<description>Wordpress has deleted the phrase in stringWithFormat:@&quot;&quot;

Put in the @&quot;&quot; following without the + 

</description>
		<content:encoded><![CDATA[<p>Wordpress has deleted the phrase in stringWithFormat:@&#8221;"</p>
<p>Put in the @&#8221;" following without the +</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1095</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Sat, 09 Aug 2008 09:32:59 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1095</guid>
		<description>This ist better and faster and works with the iPhone SDK:

- (NSString *)flattenHTML:(NSString *)html 
{
	
	NSScanner *theScanner;
	NSString *text;
	
	theScanner = [NSScanner scannerWithString:html];
	
	while ([theScanner isAtEnd] == NO) {
		
	//remove html tag
	[theScanner scanUpToString:@&quot;&lt;&quot; intoString:NULL];
	[theScanner scanString:@&quot;&quot; intoString:&amp;text];
	
		html = [html stringByReplacingOccurrencesOfString:[NSString stringWithFormat:@&quot;&quot;,text] withString:@&quot;&quot;];
		
	}
	
	return html;
}

Regards from Switzerland</description>
		<content:encoded><![CDATA[<p>This ist better and faster and works with the iPhone SDK:</p>
<p>- (NSString *)flattenHTML:(NSString *)html<br />
{</p>
<p>	NSScanner *theScanner;<br />
	NSString *text;</p>
<p>	theScanner = [NSScanner scannerWithString:html];</p>
<p>	while ([theScanner isAtEnd] == NO) {</p>
<p>	//remove html tag<br />
	[theScanner scanUpToString:@"&lt;" intoString:NULL];<br />
	[theScanner scanString:@"" intoString:&amp;text];</p>
<p>		html = [html stringByReplacingOccurrencesOfString:[NSString stringWithFormat:@"",text] withString:@&#8221;"];</p>
<p>	}</p>
<p>	return html;<br />
}</p>
<p>Regards from Switzerland</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geoff</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1089</link>
		<dc:creator>geoff</dc:creator>
		<pubDate>Sat, 02 Aug 2008 03:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1089</guid>
		<description>I haven&#039;t checked to see if there is a new feature available in Leopard that makes this easier.  If someone finds one, by all means, please leave a comment.</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t checked to see if there is a new feature available in Leopard that makes this easier.  If someone finds one, by all means, please leave a comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Kaye</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-1088</link>
		<dc:creator>Michael Kaye</dc:creator>
		<pubDate>Fri, 01 Aug 2008 16:45:03 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-1088</guid>
		<description>Thank you...works brilliantly...

I assume this is still the easiest way to do this with xCODE 3.x and Leopard SDK?</description>
		<content:encoded><![CDATA[<p>Thank you&#8230;works brilliantly&#8230;</p>
<p>I assume this is still the easiest way to do this with xCODE 3.x and Leopard SDK?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joao sampaio</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-189</link>
		<dc:creator>joao sampaio</dc:creator>
		<pubDate>Sat, 14 Apr 2007 23:48:27 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-189</guid>
		<description>because of the use of  greter and less i guess that some code  failed to display, i am sorry</description>
		<content:encoded><![CDATA[<p>because of the use of  greter and less i guess that some code  failed to display, i am sorry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joao sampaio</title>
		<link>http://sugarmaplesoftware.com/25/strip-html-tags/comment-page-1/#comment-188</link>
		<dc:creator>joao sampaio</dc:creator>
		<pubDate>Sat, 14 Apr 2007 23:42:57 +0000</pubDate>
		<guid isPermaLink="false">http://sugarmaplesoftware.com/25/strip-html-tags/#comment-188</guid>
		<description>if it&#039;s something simple you can always do this :

- (NSString *)stripTags:(NSString *) html {
	NSMutableString *result = [[NSMutableString alloc] initWithCapacity:[html length]];
	BOOL iguenore = YES;
	int index;
	unichar c;
	
	for (index = 0; index &#039;) {
			iguenore = NO;
			continue;
		}		
		if (!iguenore) {
			[result appendFormat:@&quot;%C&quot;,[html characterAtIndex:index]];
		}
	}	
	return result;
}

this is just something i wrote into some if my applications</description>
		<content:encoded><![CDATA[<p>if it&#8217;s something simple you can always do this :</p>
<p>- (NSString *)stripTags:(NSString *) html {<br />
	NSMutableString *result = [[NSMutableString alloc] initWithCapacity:[html length]];<br />
	BOOL iguenore = YES;<br />
	int index;<br />
	unichar c;</p>
<p>	for (index = 0; index &#8216;) {<br />
			iguenore = NO;<br />
			continue;<br />
		}<br />
		if (!iguenore) {<br />
			[result appendFormat:@"%C",[html characterAtIndex:index]];<br />
		}<br />
	}<br />
	return result;<br />
}</p>
<p>this is just something i wrote into some if my applications</p>
]]></content:encoded>
	</item>
</channel>
</rss>
