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 <span> element following the visible text. This means the original text remains intact!
This JavaScript plugin has been coded and released by Dollar Shave Club.
Demo: Plain JS on Codepen, jQuery or Zepto on Codepen
Download: GitHub
