getHTML method