Fix bug of removeHtmlAttr