I’ve been trying to achieve this for a while, I have a string which contains a lot of HTML tags in it which is in some encoded form Like & lt; and & gt; (without th
You can simply use RegExp without 3rd Lib
String removeAllHtmlTags(String htmlText) { RegExp exp = RegExp( r"<[^>]*>", multiLine: true, caseSensitive: true ); return htmlText.replaceAll(exp, ''); }