Partial implementation of GetHTMLText.