Is there anyway to get the inner text of a block of HTML code? I can display it but searched for ways but there doiesn't seem to be a easy way to get the inner text(i.e. strip all tags) like you can in javascript. I am using flutter_html: ^1.0.2.


   child: Html(data: "<p>Hello world!</p>")

Above code will display "Hello world!", but there's no way to extract that into a variable.

Any ideas?

Solution 1: Wei Yang

Ended up finding the answer to my own question. Hope this help those who also searching:

Remove HTML tags from a String in Dart