Created
December 17, 2008 01:40
-
-
Save loe/36909 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> stuff = %Q(<object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://vimeo.com/221785">"Riding for a Living" - by Nitro Snowboards</a> from <a href="http://vimeo.com/nitrosnow">Nitro Snowboards</a> on <a href="http://vimeo.com">Vimeo</a>) | |
=> "<object width=\"400\" height=\"300\"><param name=\"allowfullscreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"400\" height=\"300\"></embed></object><br /><a href=\"http://vimeo.com/221785\">\"Riding for a Living\" - by Nitro Snowboards</a> from <a href=\"http://vimeo.com/nitrosnow\">Nitro Snowboards</a> on <a href=\"http://vimeo.com\">Vimeo</a>" | |
>> doc = Hpricot(stuff) | |
=> #<Hpricot::Doc {elem <object height="300" width="400"> {emptyelem <param name="allowfullscreen" value="true">} {emptyelem <param name="allowscriptaccess" value="always">} {emptyelem <param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1">} {emptyelem <embed allowfullscreen="true" type="application/x-shockwave-flash" src="http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" allowscriptaccess="always" height="300" width="400">} </object>} {emptyelem <br>} {elem <a href="http://vimeo.com/221785"> "\"Riding for a Living\" - by Nitro Snowboards" </a>} " from " {elem <a href="http://vimeo.com/nitrosnow"> "Nitro Snowboards" </a>} " on " {elem <a href="http://vimeo.com"> "Vimeo" </a>}> | |
>> doc.at(:embed) | |
=> {emptyelem <embed allowfullscreen="true" type="application/x-shockwave-flash" src="http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1" allowscriptaccess="always" height="300" width="400">} | |
>> stuff | |
=> "<object width=\"400\" height=\"300\"><param name=\"allowfullscreen\" value=\"true\" /><param name=\"allowscriptaccess\" value=\"always\" /><param name=\"movie\" value=\"http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" /><embed src=\"http://vimeo.com/moogaloop.swf?clip_id=221785&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1\" type=\"application/x-shockwave-flash\" allowfullscreen=\"true\" allowscriptaccess=\"always\" width=\"400\" height=\"300\"></embed></object><br /><a href=\"http://vimeo.com/221785\">\"Riding for a Living\" - by Nitro Snowboards</a> from <a href=\"http://vimeo.com/nitrosnow\">Nitro Snowboards</a> on <a href=\"http://vimeo.com\">Vimeo</a>" | |
>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment