add encodeHtmlEntities option
add encodeHtmlEntities option test for element attributes
Merge pull request #32 from alanclarke/entities-option

add encodeHtmlEntities option