My index.html file looks like this.
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f2f2f2" align="center" id="edmTable">
<!-- Content goes in here -->
</table>
<script src="main.js"></script>
</body>
</html>
The main.js file renders a bunch of HTML within the table tags. If I view the page source of the rendered HTML you get the above code instead of the rendered HTML.
I have to open the element inspector > right-click > edit as HTML to get the HTML markup.
My goal: I would like to output the rendered HTML into a separate HTML file.
I've tried to Google this and I don't know how to word it to get the information I need.
Is there a node or gulp plugin that could help me achieve this that you could point me in the direction of?
Ideally the HTML file would be outputted on save or page load. This is because the main.js renders the content based on a JSON file. So I can easily update the JSON and load the page and I can see the rendered markup.