Shave javascript plugin that truncates multi-line text Posted on November 9, 2016 A modern javascript plugin for truncating text within an html element. Source: Shave is a zero dependency javascript plugin that truncates multi-line text to fit within an html element based on a set max-height.