forked from eentzel/htmltruncate.py
azarai/htmltruncate.py
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A module to truncate strings containing HTML. htmltruncate.truncate(str, target_len, ellipsis='') Returns a copy of str truncated to target_len characters, preserving HTML markup (which does not count towards the length). Any tags that would be left open by truncation will be closed at the end of the returned string. Optionally append ellipsis if the string was truncated.
About
Python module for truncating text that contains markup
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published