html_ellipsis 1.0.0 copy "html_ellipsis: ^1.0.0" to clipboard
html_ellipsis: ^1.0.0 copied to clipboard

A HTML ellipsis utility function for Dart

example/html_ellipsis_example.dart

import 'package:html_ellipsis/html_ellipsis.dart';

void main() {
  String input1 = '<div>Some <strong>cool</strong> example HTML</div>';
  print('Truncate: ${htmlEllipsis(input1, 9)}');
  String input2 = '<div>Some cool example HTML</div>';
  print('Truncate: ${htmlEllipsis(input2, 9, addEllipsis: true)}');
}
0
likes
150
pub points
15%
popularity

Publisher

unverified uploader

A HTML ellipsis utility function for Dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on html_ellipsis