Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QWebFrame::toHtml() is encoding <> automatically!
c0debreak last edited by
Below is a testing php script,
echo $_GET['abc'], "<br/>";
If I retrieve the contents of that page with chromium browser, showing the source code reveals contents like this:
@<><br/>& lt;& gt;@ (Remove the "space")
But with QWebFrame::toHtml(), all <> are encoded, and I got:
@<html><head></head><body>& lt;& gt;<br>& lt;& gt; </body></html>@
(Remove the space!)
So clearly createMarkup encoded them, can I stop that behavior?
according to QWebFrame's implementation there is no way ... at least with the toHtml()-method.