TruncateHtml ============ truncate_html is a Rails helper plugin that [cuts off](http://www.youtube.com/watch?v=6XG4DIOA7nU) a string of HTML and takes care of closing any lingering open tags. There are many possible solutions to this. This plugin does not have any dependencies, and does all it's work via [regular expressions](http://xkcd.com/208/). The API is very similar to Rails' own truncate() method. Example ------- some_html = '' truncate_html(some_html, :length => 15, :omission => '...(continued)') => A few notes: * By default, it will truncate on word boundary. To truncate the HTML string strictly at the specified length, pass in the `:word_boundary => false` option. * If the input HTML is nil, it will return an empty string. * The omission text's length does count toward the resulting string's length. * `