Teach, please, how to output from the entire html page in the WebView content only div id="main-content" .
If I understand correctly, then there are 3 ways:
- Parse the whole page, and then build a new html from the resulting
- Use javascript and show only what i need (
div id="main-content"). - Use JavaScript and hide everything that I do NOT need (
header class="mh-header"andaside class="mh-sidebar").
Since I am quite a beginner "developer", I am very vaguely imagining how to do this. Parsing and rebuilding HTML is very difficult for me. I would like to look at an example of a solution using the second or third method. Dear gurus - share a fraction of your knowledge. :)