Skip to content
This repository has been archived by the owner on Feb 21, 2021. It is now read-only.

tiegz/kadoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No packages published

Languages