added hasHTMLContent