[Help needed] How to get the HTML content from a content::WebContents*?

13 views
Skip to first unread message

Fldax

unread,
Sep 22, 2021, 3:51:17 AMSep 22
to Chromium-dev
Hi,
How to get the HTML content from a content::WebContents*? For example, there is a views::WebView control, after the page finished loading, how to get the HTML text of the WebView is rendering?
content::WebContents does have api to save the page to disk, but what i want is just the html text save to a std:string.

Thanks for all the help.
Reply all
Reply to author
Forward
0 new messages