Added code to return tagName when in closing tag
A few refactorings
Fixes after first review
Fixes after second review
Minor fixes after review
Merge pull request #3419 from WebsiteDeveloper/Issue-3407

Added Code to HtmlUtils to return info when in closing tag