Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
New truncate and truncateWords methods #2942
I did something similar to truncateWord but it truncates based on letter count to word count:
It's a bit sloppy but if you want to use it feel free to add it.