return [emailprotected] when get content from a website
-
I am using QNetworkAccessManager to get content from a website via an url.
My code is something like this:QNetworkRequest get_request(url); QNetworkReply* reply = nam->get(get_request); connect(reply, SIGNAL(finished()), this, SLOT(handle_get_reply()), Qt::QueuedConnection);and i get website content in
handle_get_replyfunction, like this:std::string content = reply->readAll().toStdString();Everything seems to be ok. But there is one problem. If website contents contains some text like
12100F@5Ghz, mycontentstring will be like this:<span class="__cf_email__" data-cfemail="48797a7978780e087d0f2032">[email protected]</span>when i access website url via web browsers. The content is showing normally.
How can i fix this problem?
-
Hi @cuongkjm, have a read of this Stack Overflow question/answer:
Cheers.
-
Thank you very much for your support. Your answer lead me to this answer: https://stackoverflow.com/a/58809612/8299222
And it solves my problem.