added "setHtml" feature