<?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: Rails + Tidy + REXML</title>
	<atom:link href="http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/feed/" rel="self" type="application/rss+xml" />
	<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/</link>
	<description>Passionate climber, brilliant coder</description>
	<lastBuildDate>Fri, 29 Apr 2011 07:54:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Joakim Andersson</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-33477</link>
		<dc:creator>Joakim Andersson</dc:creator>
		<pubDate>Thu, 27 Aug 2009 11:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-33477</guid>
		<description>&lt;p&gt;@Alex I think Hpricot is available for windows so you should be able to use Henrik&#039;s solution.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Alex I think Hpricot is available for windows so you should be able to use Henrik&#8217;s solution.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-33392</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 04 Aug 2009 13:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-33392</guid>
		<description>&lt;p&gt;What about windows environment ?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What about windows environment ?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-29878</link>
		<dc:creator>Joakim</dc:creator>
		<pubDate>Thu, 07 Feb 2008 14:17:17 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-29878</guid>
		<description>&lt;p&gt;Coolness. I&#039;m going to use your code in the future. It&#039;s better than my crap :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Coolness. I&#8217;m going to use your code in the future. It&#8217;s better than my crap :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-29824</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Wed, 30 Jan 2008 17:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-29824</guid>
		<description>&lt;p&gt;Done: http://henrik.nyh.se/2008/01/rails-truncate-html-helper&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Done: <a href="http://henrik.nyh.se/2008/01/rails-truncate-html-helper" rel="nofollow">http://henrik.nyh.se/2008/01/rails-truncate-html-helper</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: Henrik N</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-29821</link>
		<dc:creator>Henrik N</dc:creator>
		<pubDate>Wed, 30 Jan 2008 13:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-29821</guid>
		<description>&lt;p&gt;Nice. I found myself wanting to make that HTML truncation code handle broken markup, too. Instead of tidy, I went with &lt;a href=&quot;http://code.whytheluckystiff.net/hpricot/&quot; rel=&quot;nofollow&quot;&gt;Hpricot&lt;/a&gt; which I&#039;m using for other stuff, and which ships with OS X Leopard.&lt;/p&gt;

&lt;p&gt;To tidy up markup with Hpricot, you can simply do:
&lt;code&gt;
Hpricot(dirty_markup).to_s
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I&#039;m considering rewriting the truncater in all-Hpricot.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice. I found myself wanting to make that HTML truncation code handle broken markup, too. Instead of tidy, I went with <a href="http://code.whytheluckystiff.net/hpricot/" rel="nofollow">Hpricot</a> which I&#8217;m using for other stuff, and which ships with OS X Leopard.</p>

<p>To tidy up markup with Hpricot, you can simply do:
<code>
Hpricot(dirty_markup).to_s
</code></p>

<p>I&#8217;m considering rewriting the truncater in all-Hpricot.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Suave&#8217;s Blog &#187; &#187; make excerpt in Ruby</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-28732</link>
		<dc:creator>Suave&#8217;s Blog &#187; &#187; make excerpt in Ruby</dc:creator>
		<pubDate>Wed, 09 May 2007 05:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-28732</guid>
		<description>&lt;p&gt;[...] ????? Tidy ??????????????FreeBSD 6.2 + Ruby 1.8.6 + libtidy_051026 + rubytidy 1.1.2 ?????Bug????? [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] ????? Tidy ??????????????FreeBSD 6.2 + Ruby 1.8.6 + libtidy_051026 + rubytidy 1.1.2 ?????Bug????? [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Suave</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-28730</link>
		<dc:creator>Suave</dc:creator>
		<pubDate>Tue, 08 May 2007 06:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-28730</guid>
		<description>&lt;p&gt;I&#039;ve tried, but there&#039;s a problem on FreeBSD 6.2 + tidylib-051026_2 + ruby tidy 1.1.2.&lt;/p&gt;

&lt;p&gt;And the same problem occurs at http://www.mail-archive.com/freebsd-ports@freebsd.org/msg05130.html&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried, but there&#8217;s a problem on FreeBSD 6.2 + tidylib-051026_2 + ruby tidy 1.1.2.</p>

<p>And the same problem occurs at <a href="http://www.mail-archive.com/freebsd-ports@freebsd.org/msg05130.html" rel="nofollow">http://www.mail-archive.com/freebsd-ports@freebsd.org/msg05130.html</a></p>]]></content:encoded>
	</item>
	<item>
		<title>By: etal</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-28714</link>
		<dc:creator>etal</dc:creator>
		<pubDate>Wed, 02 May 2007 14:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-28714</guid>
		<description>&lt;p&gt;Nice work but there are some problems with the code. 
Somewhere along the way you changed the close tags on lines 33 and 50 into html comments and discarded the  attrs_to_s definition completely.
Also to actually work with utf-8 content you have to change all references to length and slice into chars.length and chars.slice , you get odd results otherwise.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Nice work but there are some problems with the code. 
Somewhere along the way you changed the close tags on lines 33 and 50 into html comments and discarded the  attrs_to_s definition completely.
Also to actually work with utf-8 content you have to change all references to length and slice into chars.length and chars.slice , you get odd results otherwise.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Truncating HTML in Ruby &#171; Mike Burns, Coder</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-28564</link>
		<dc:creator>Truncating HTML in Ruby &#171; Mike Burns, Coder</dc:creator>
		<pubDate>Thu, 29 Mar 2007 04:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-28564</guid>
		<description>&lt;p&gt;[...] Truncating HTML in&#160;Ruby  Update: You should read the comments, then check out the extended verion of truncate_html that uses Tidy. [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] Truncating HTML in&nbsp;Ruby  Update: You should read the comments, then check out the extended verion of truncate_html that uses Tidy. [...]</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim</title>
		<link>http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/comment-page-1/#comment-28262</link>
		<dc:creator>Joakim</dc:creator>
		<pubDate>Mon, 19 Mar 2007 10:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://joakimandersson.se/archives/2007/03/01/rails-tidy-rexml/#comment-28262</guid>
		<description>&lt;p&gt;Sorry about your name. I&#039;ve fixed it now.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sorry about your name. I&#8217;ve fixed it now.</p>]]></content:encoded>
	</item>
</channel>
</rss>

