htmltruncate.py
htmltruncate.py copied to clipboard
Adds ability to truncate to the nearest full word.
Optional 'full_word' param added to truncate method returns partial string shortened to the nearest word.