Get plain text from a QString with HTML tags

I have a QString with html tags. Why can I get plain text from this line?

+6
source share
2 answers

You need to remove the HTML tags from the string. See this post , for example.

+4
source

str.remove (QRegExp ("<[^>] *>"));

+6
source

Source: https://habr.com/ru/post/888091/


All Articles