add encodeHtmlEntities option