<?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: nl2br in RoR</title>
	<atom:link href="http://blog.admoolabs.com/nl2br-in-ror/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.admoolabs.com/nl2br-in-ror/</link>
	<description>Bringing fun back to the web.</description>
	<lastBuildDate>Mon, 14 Nov 2011 22:59:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: maximus</title>
		<link>http://blog.admoolabs.com/nl2br-in-ror/comment-page-1/#comment-548</link>
		<dc:creator>maximus</dc:creator>
		<pubDate>Mon, 27 Oct 2008 23:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.admoolabs.com/?p=10#comment-548</guid>
		<description>Nice one-liner. Thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Nice one-liner. Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald Abrencillo</title>
		<link>http://blog.admoolabs.com/nl2br-in-ror/comment-page-1/#comment-8</link>
		<dc:creator>Gerald Abrencillo</dc:creator>
		<pubDate>Tue, 05 Feb 2008 15:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.admoolabs.com/?p=10#comment-8</guid>
		<description>Thanks. I&#039;ll have to look into this.</description>
		<content:encoded><![CDATA[<p>Thanks. I&#8217;ll have to look into this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikong</title>
		<link>http://blog.admoolabs.com/nl2br-in-ror/comment-page-1/#comment-7</link>
		<dc:creator>mikong</dc:creator>
		<pubDate>Sun, 03 Feb 2008 07:40:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.admoolabs.com/?p=10#comment-7</guid>
		<description>If you&#039;re looking for a function that&#039;s view-related, check ActionView::Helpers. I never needed an nl2br method so far in my RoR projects, but after reading this post and checking the API, I found the TextHelper module with a method called simple_format. It&#039;s not exactly the same as nl2br because if you have 2 or more newlines, it wraps the content in p tags.</description>
		<content:encoded><![CDATA[<p>If you&#8217;re looking for a function that&#8217;s view-related, check ActionView::Helpers. I never needed an nl2br method so far in my RoR projects, but after reading this post and checking the API, I found the TextHelper module with a method called simple_format. It&#8217;s not exactly the same as nl2br because if you have 2 or more newlines, it wraps the content in p tags.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gerald Abrencillo</title>
		<link>http://blog.admoolabs.com/nl2br-in-ror/comment-page-1/#comment-6</link>
		<dc:creator>Gerald Abrencillo</dc:creator>
		<pubDate>Fri, 01 Feb 2008 00:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.admoolabs.com/?p=10#comment-6</guid>
		<description>&lt;p&gt;There&#039;s really no styling going on in the code. For example, if I post something like:&lt;/p&gt;
&lt;p&gt;Yey&lt;/p&gt;
&lt;p&gt;Boo&lt;/p&gt;
&lt;p&gt;If I retrieve it from the database and display it in the view, it will be displayed as:&lt;/p&gt;
&lt;p&gt;YeyBoo&lt;/p&gt;
&lt;p&gt;The nl2br function just changes all line breaks to &#039;&lt;br/&gt;&#039; so it will be displayed properly in the view. If there&#039;s an alternative let me know. It may come in handy in the future. :D&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>There&#8217;s really no styling going on in the code. For example, if I post something like:</p>
<p>Yey</p>
<p>Boo</p>
<p>If I retrieve it from the database and display it in the view, it will be displayed as:</p>
<p>YeyBoo</p>
<p>The nl2br function just changes all line breaks to &#8216;&lt;br/&gt;&#8217; so it will be displayed properly in the view. If there&#8217;s an alternative let me know. It may come in handy in the future. <img src='http://blog.admoolabs.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramon Tayag</title>
		<link>http://blog.admoolabs.com/nl2br-in-ror/comment-page-1/#comment-5</link>
		<dc:creator>Ramon Tayag</dc:creator>
		<pubDate>Thu, 31 Jan 2008 12:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.admoolabs.com/?p=10#comment-5</guid>
		<description>Don&#039;t you want to leave all formatting and styling for CSS nalang? :D</description>
		<content:encoded><![CDATA[<p>Don&#8217;t you want to leave all formatting and styling for CSS nalang? <img src='http://blog.admoolabs.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

