<?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: HTML Dom in Ruby with Nokogiri</title>
	<atom:link href="http://www.jasonrowland.com/2010/02/html-dom-in-ruby-with-nokogiri/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonrowland.com/2010/02/html-dom-in-ruby-with-nokogiri/</link>
	<description>Learning Mac, Ruby, iPhone, BlackBerry, Android, WinMobile</description>
	<lastBuildDate>Sat, 03 Sep 2011 21:27:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Luis</title>
		<link>http://www.jasonrowland.com/2010/02/html-dom-in-ruby-with-nokogiri/comment-page-1/#comment-104</link>
		<dc:creator>Luis</dc:creator>
		<pubDate>Sun, 01 Aug 2010 12:35:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.jasonrowland.com/?p=286#comment-104</guid>
		<description>Hi
In strip!, you can get a copy of the string doing a &quot;self.dup&quot; instead of doing the &quot;self.reverse.reverse&quot; thing.
And gsub! already returns nil when it didn&#039;t modified the string, so you can replace the whole strip! with:

def strip!; self.gsub!(/^[\302\240&#124;\s]*&#124;[\302\240&#124;\s]*$/, &#039;&#039;); end</description>
		<content:encoded><![CDATA[<p>Hi<br />
In strip!, you can get a copy of the string doing a &#8220;self.dup&#8221; instead of doing the &#8220;self.reverse.reverse&#8221; thing.<br />
And gsub! already returns nil when it didn&#8217;t modified the string, so you can replace the whole strip! with:</p>
<p>def strip!; self.gsub!(/^[\302\240|\s]*|[\302\240|\s]*$/, &#8221;); end</p>
]]></content:encoded>
	</item>
</channel>
</rss>

