chrisbitting.com
How to Truncate / Trim Text By Sentence in JavaScript (not word or character)
Many times for showing a preview of longer text, I prefer not just to show a certain amount of characters (although it looks better visually) but to break it via sentence. Below is a small JavaScri…