stripHtml method

String stripHtml()

Removes all HTML tags from this string.

'<p>Hello <b>World</b></p>'.stripHtml() // 'Hello World'

Implementation

String stripHtml() => replaceAll(RegExp(r'<[^>]*>'), '');