retry fix for #81 without extra comments, redefined unescapeHTMLEntities function
updated htmlParser to cache div for html entity unescape
updated with check for string type so indexOf doesnt break. also added test case for html entity writes of all types
updating with newline at end of file
Merge pull request #85 from belbis/master

update to unescapeHTMLEntities function to support all HTML entities. Fixes issue #81