<?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: Chomp for JavaScript</title>
	<atom:link href="http://3dmdesign.com/development/chomp-for-javascript/feed" rel="self" type="application/rss+xml" />
	<link>http://3dmdesign.com/development/chomp-for-javascript</link>
	<description>JavaScript and Ruby on Rails Web Applications</description>
	<lastBuildDate>Mon, 12 Dec 2011 07:48:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Scott VR</title>
		<link>http://3dmdesign.com/development/chomp-for-javascript/comment-page-1#comment-37349</link>
		<dc:creator>Scott VR</dc:creator>
		<pubDate>Wed, 13 Apr 2011 00:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://3dmdesign.com/dev-journal/javascript/chomp-for-javascript#comment-37349</guid>
		<description>How about this?

&lt;code&gt;

String.prototype.chomp = function () { 
  return this.replace(/(\n&#124;\r)+$/, &#039;&#039;);
}

&lt;/code&gt;

Your post prompted me to include that in my standard library. Thanks.</description>
		<content:encoded><![CDATA[<p>How about this?</p>
<p><code></p>
<p>String.prototype.chomp = function () {<br />
  return this.replace(/(\n|\r)+$/, '');<br />
}</p>
<p></code></p>
<p>Your post prompted me to include that in my standard library. Thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

