[Interest] opposite of QString::toEscapedHtml()
scott at towel42.com
Fri Aug 11 01:55:34 CEST 2017
Is there a function, I searched and could not find anything that returns the human readable version of the string?
QString origString = .....;
decodeHtml( origString.toEscapedHtml() ) == origString;
The biggest hack of all hacks I could find is the following
doc.setHtml( origString );
QString plaintext = doc.toPlainText();
Which just seems like a little bit of overkill
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest