add encodeHtmlEntities option
add encodeHtmlEntities option test for element attributes