html_ellipsis library
Functions
-
htmlEllipsis(
String html, int maxLength, {bool addEllipsis = false}) → String -
Truncates
htmltomaxLengthchars without destroying HTML tags. SettingaddEllipsistotruewill append an ellipsis to the end of the string (this does not make the string longer thanmaxLength).