Updated truncate_html to version used in spree.