htmltruncate.py
htmltruncate.py copied to clipboard
Python module for truncating text that contains markup
Results
3
htmltruncate.py issues
Sort by
recently updated
recently updated
newest added
See the added test in this PR for a better explanation.
I was wondering if you could package this project onto PyPI so we could just do `pip install htmltruncate`. I think it would be nicer than having to copy paste...
Optional 'full_word' param added to truncate method returns partial string shortened to the nearest word.