Use an epub validation tool (below) to test your eBook.
https://www.ebookit.com/cgi-bin/epubcheck.cgi
Open Notepad++ (or other text editor) and paste the HTML in order to keep it safe. You can save the file if you wish.
Copy the code into the Dirty Markup web application in order to make it cleaner and easier to read.