Fix for <!DOCTYPE> tag html parsing, which could cause the regex engine to freeze with 100% cpu for certain inputs.

Add fix for proper handling of <A> tags (with capitalized tag name) as well.