Intelligent Text Truncation JavaScript Library