module NokogiriTruncator

from github.com/middleman/middleman-blog/blob/master/lib/middleman-blog/truncate_html.rb