htmlwhitelist 0.5.2-dev copy "htmlwhitelist: ^0.5.2-dev" to clipboard
htmlwhitelist: ^0.5.2-dev copied to clipboard

outdated

This library can be used to clean up html on the server. The main purpose is to convert html from an untrusted source to a version that's safe for rendering.

example/example.dart

import 'package:htmlwhitelist/htmlwhitelist.dart';

void main() {
  var contents = '<b>See:</b> <a href="docs.html">the documentation</a>';
  var safe = Whitelist.simpleText.safeCopy(contents);
  print(safe);
}
0
likes
0
pub points
67%
popularity

Publisher

unverified uploader

This library can be used to clean up html on the server. The main purpose is to convert html from an untrusted source to a version that's safe for rendering.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

html

More

Packages that depend on htmlwhitelist