Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
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.