Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ugly small lib to convert HTML markup to ugly HTML markup.

Things such these happen…

<strong>some bold text</strong>

to

<span style="font-weight: bold"></span>

-

<em>some bold text</em>

to

<span style="font-style: italic"></span>

-

<ul>
  <li>Item 1</li>
  <li>Item 2
    <ul>
      <li>Item 1 List 2</li>
    </ul>
  </li>
</ul>

to

<ul>
  <li>Item 1</li>
  <li>Item 2
    <ul>
      <li>Item 1 List 2</li>
    </ul>
  </li>
</ul>
  • Put it inside a nicEdit Wysiwyg editor.

  • Hpricot

  • Hpricot extensions Elem::Trav::add_style, Elem::Trav::has_style?, Elem::change_tag!

gem install zevarito-uglify_html
Authors

Alvaro Gil (zevarito)

License

MIT (Check LICENSE for details)

About

Make a Html document ugly

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages