hgmnz/truncate_html — pull request #28 by zapnap (2013-01-02 21:55:26+00:00)
Title: allow custom word boundaries

Our use case for this was matching the end of the nearest sentence. I considered adding a custom option (:break_on_sentences?) but it made more sense to just stuff a regexp value in word_boundary for maximum flexibility. If this it's explicitly set to false by the user, it'll still do the right thing (original behavior preserved). Let me know what you think, thanks!