I have QString with html tags. Why can i get plain text from this string?
laurent
You need to strip off the HTML tags from the string. See this post for instance.
str.remove(QRegExp("<[^>]*>"));
来源:https://stackoverflow.com/questions/5999967/get-plain-text-from-qstring-with-html-tags