string/safe_html_excerpt_utils library
Safe HTML excerpt (truncate without breaking tags) — roadmap #440.
Functions
-
safeHtmlExcerpt(
String html, int maxLength) → String -
Truncates
htmlto aboutmaxLengthchars, closing open tags.
Safe HTML excerpt (truncate without breaking tags) — roadmap #440.
html to about maxLength chars, closing open tags.