Adding support for HTML entities for HTML docs only

Closes https://github.com/jindw/xmldom/pull/58.

This is based on @andromedado's PR but limits the scope of the changes to only HTML documents as only lt, gt, amp, quot, and apos are defined in XML (http://en.wikipedia.org/wiki/Character_entity_reference), as correctly pointed out by @youngj.