Add method to check html content (not just file), update checkHtmlFile() to use this