search for: html_scanner

Displaying 1 result from an estimated 1 matches for "html_scanner".

2012 Feb 17
0
HtmlSlicer 0.0.1
...orm it as a partial. :only is a Hash or Array of hashes, describes which exactly nodes of HTML content to slice.* :except is a Hash or Array of hashes, describes which exactly nodes of HTML content NOT to slice.* Actually the hash is a argument for HTML::Conditions class (the part of ActionPack’s html_scanner block). Look atgithub.com/rails/rails/blob/master/actionpack/lib/action_controller/vendor/html-scanner/html/node.rb This is a very flexible utility to navigate via HTML content. Read native documentation for details. For example: ID for <hr class="break"> tag is a hash: {:tag =>...