fix endText value for html method