stripHtml method
Removes all HTML tags from this string.
'<p>Hello <b>World</b></p>'.stripHtml() // 'Hello World'
Implementation
String stripHtml() => replaceAll(RegExp(r'<[^>]*>'), '');
Removes all HTML tags from this string.
'<p>Hello <b>World</b></p>'.stripHtml() // 'Hello World'
String stripHtml() => replaceAll(RegExp(r'<[^>]*>'), '');