htmlToText function
Transform html
to plain text.
Implementation
String? htmlToText(String html, [NodeValidator? validator]) {
var elem = createHTML('<div>$html</div>', validator);
return elem.text;
}
Transform html
to plain text.
String? htmlToText(String html, [NodeValidator? validator]) {
var elem = createHTML('<div>$html</div>', validator);
return elem.text;
}