This repository has been archived by the owner on Feb 21, 2021. It is now read-only.
A Ruby lib that uses Hpricot to clean up your unreadable HTML (ie from ERB) [use with caution]
License
tiegz/kadoku
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
kadoku by Tieg Zaharia http://github.com/tiegz/kadoku == DESCRIPTION: Kadoku is a Ruby library that uses Hpricot to clean up your unreadable HTML (ie ERB-generated html) [use with caution]. == REQUIREMENTS: * Hpricot == INSTALL: $ gem sources -a http://gems.github.com/ (you only need to do this once) $ gem install tiegz-kadoku == USAGE: Require the gem... require 'tiegz-kadoku' To load the doc, a = open('my.site.com/index.html') b = Kadoku::Markup.new(a) To get the cleaned-up markup, b.to_clean_html To get the original html (rebuilt by Hpricot), b.to_html == RELEVANT LINKS: * http://blog.solid1pxred.com/articles/2008/12/18/kadoku-the-markup-apologist
About
A Ruby lib that uses Hpricot to clean up your unreadable HTML (ie from ERB) [use with caution]
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published