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