Posted on Thursday, October 27th, 2016

Shave is a zero dependency javascript plugin that truncates multi-line text to fit within an html element based on a set max-height. It then stores the diff of the original text string in a hidden element following the visible text. This means the original text remains intact!