<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/ruby/tags/html</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 28 Aug 2008 15:14:49 GMT</pubDate>
<item>
<title>(Ruby) Rendered WGet with Selenium - noah</title>
<link>http://snipplr.com/view/7906/rendered-wget-with-selenium/</link>
<description><![CDATA[ <p>Created in response to a discussion about "ghosting," between Kord Campbell of Splunk and Christian Heilman of Yahoo! at Ajax World 2008.

IMPORTANT: The Selenium-RC server must be running on port 4444 (the default) and you must have Curl and Tidy installed on your system.   

NOTE: Diffing the rendered versus the "server" source.  This option works OK as a learning tool, but I need to do more in terms of normalizing the server source versus the rendered source.  I run both the "server" and innerHTML sources through Tidy, but unfortunately there still seems to be a lot of extraneous differences between them.

So while this works OK for downloading the rendered source via a Ruby script, I've got a ways to go before it can produce a reliable "rendered diff."</p> ]]></description>
<pubDate>Mon, 18 Aug 2008 09:23:43 GMT</pubDate>
<guid>http://snipplr.com/view/7906/rendered-wget-with-selenium/</guid>
</item>
<item>
<title>(Ruby) list directory and create wget calls to build standalone html dirs - jhenry</title>
<link>http://snipplr.com/view/5381/list-directory-and-create-wget-calls-to-build-standalone-html-dirs/</link>
<description><![CDATA[ <p>output can be run as a shell script.  should be able to refactor this as a piped wget, i think</p> ]]></description>
<pubDate>Wed, 12 Mar 2008 16:57:31 GMT</pubDate>
<guid>http://snipplr.com/view/5381/list-directory-and-create-wget-calls-to-build-standalone-html-dirs/</guid>
</item>
<item>
<title>(Ruby) Pager for lots o' data - Agent</title>
<link>http://snipplr.com/view/3409/pager-for-lots-o-data/</link>
<description><![CDATA[ <p>This function (intended to be an application or view helper) creates a pager bar useful for navigating many pages. It shows the first, last, current, nearby, and halfway-to-end pages. It looks like this (where the current page is 11):

< 1 ... 5 ... 10 11 12 ... 14 15 >

The pagerBar function takes two parameters: a RoR paginator, and an anchor that will be attached to all the links.</p> ]]></description>
<pubDate>Sat, 28 Jul 2007 12:04:47 GMT</pubDate>
<guid>http://snipplr.com/view/3409/pager-for-lots-o-data/</guid>
</item>
<item>
<title>(Ruby) Strip HTML Tags - gtcaz</title>
<link>http://snipplr.com/view/2097/strip-html-tags/</link>
<description><![CDATA[ <p>This replaces the PHP-based function in the HTML bundle.  You need to add two files to your bundle's Support/lib folder (create the directories if they're not present):

http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb?format=raw
http://dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/vendor/html-scanner/html/tokenizer.rb?format=raw</p> ]]></description>
<pubDate>Fri, 02 Feb 2007 15:28:37 GMT</pubDate>
<guid>http://snipplr.com/view/2097/strip-html-tags/</guid>
</item>
<item>
<title>(Ruby) reading html from an external URL - aravet</title>
<link>http://snipplr.com/view/182/reading-html-from-an-external-url/</link>
<description><![CDATA[ <p>reference:
\n
http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/classes/Net/HTTP.html

http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html</p> ]]></description>
<pubDate>Wed, 31 Dec 1969 19:00:00 GMT</pubDate>
<guid>http://snipplr.com/view/182/reading-html-from-an-external-url/</guid>
</item>
</channel>
</rss>