Fix handling of HTML tags and entities to match DMD's DDOC implementation.

See #16.