html_ellipsis library

Functions

htmlEllipsis(String html, int maxLength, {bool addEllipsis = false}) String
Truncates html to maxLength chars without destroying HTML tags. Setting addEllipsis to true will append an ellipsis to the end of the string (this does not make the string longer than maxLength).