htmlwhitelist 0.5.3 htmlwhitelist: ^0.5.3 copied to clipboard
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.
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);
}