railsmonk RSS

Hey, I'm Dima Sabanin and I love programming and I've been doing this since I was 10 years old. For the last 3 years I work with Rails.

I study Zen, I have a family with a small kid. This is my brain dump.

Email: sdmitry@gmail.com




Recommend Me

Archive

Sep
27th
Sat
permalink

My StringTidy plugin

This is really tiny one.

About

Wraps Tidy gem into String for easier usage. Allows you to clean up portions of HTML code in strings, without any effort.

Requires Tidy gem and Tidy C lib (which is installed on Mac and most Unixes by default).

Defines String#tidy(options={})

Usage examples

Installation

  1. gem install tidy
  2. ./script/plugin install \ git://github.com/railsmonk/string_tidy.git

Sources

http://github.com/railsmonk/string_tidy/tree/master

There’s also some other stuff on my github page, check it out.