change the way of calling getHtmlTitle