htmlwhitelist 0.5.1 copy "htmlwhitelist: ^0.5.1" to clipboard
htmlwhitelist: ^0.5.1 copied to clipboard

outdatedDart 1 only

This library can be used to clean up html on the server. The main purpose is to process html from an untrusted source and make sure that if the html is rendered by your application it doesn't contain [...]

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
70%
popularity

Publisher

unverified uploader

This library can be used to clean up html on the server. The main purpose is to process html from an untrusted source and make sure that if the html is rendered by your application it doesn't contain elements that are not safe.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

html

More

Packages that depend on htmlwhitelist