html_slicer 0.2.0
html_slicer: ^0.2.0 copied to clipboard
A Dart/Flutter plugin that truncates HTML while preserving valid structure and certain specified tags.
0.2.0 #
Bug Fixes #
- Fix HTML entities (
&,A,A) miscounted as multiple characters instead of one - Fix case-insensitive protected tag closing search (
<Video>...</Video>now works) - Fix HTML comments with
>inside breaking the parser - Fix tag attributes with
>inside quoted values breaking the parser - Fix CRLF (
\r\n) producing double line breaks
Features #
- Add customizable
preserveTagsparameter with exporteddefaultPreserveTagsconstant - Add customizable
ellipsisparameter (defaults to...) - Add input validation (
ArgumentErrorfor negativemaxLength, early return for empty input)
Improvements #
- Add
example/main.dartwith 14 extensive use cases - Expand test suite from 16 to 55+ test cases
- Update doc comments to Dart-style
[param]notation - Remove unused
mocktaildev dependency
0.1.0+1 #
- feat: initial commit 🎉