Fixed error in getHTMLText