Truncate Bug?

Any idea why the truncate() function returns the wrong number of
characters when using HTML as the 3rd (truncate_string) parameter?..

<%= truncate(body, 100) %>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec risus
ipsum, accumsan ut, consecte…

<%= truncate(body, 100, ’ +’) %>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec risus
ipsum, accumsan ut, consecte +

<%= truncate(body, 100, ’ more…’) %>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit more…

The truncate method includes the length of that parameter as part of
the maximum length. Here’s the documentation and source:
http://github.com/rails/rails/tree/master/actionpack/lib/action_view/helpers/text_helper.rb#L71

-Dan M.
http://www.dcmanges.com/blog