Will check (X)HTML Markup on if every opened tag is closed (self-contained tags need to be closed at the end XHTML-Style, e.g. <img .../>
, receives an HTML string and returns either true or false.
Currently does not work on HTML single tags - maybe some golfing could resolve this issue.
Even for well-formed XML we should first filter input string with something like
in order to strip CDATA sections, PI's, doctypes and comments.
And... Parsing (X)HTML with regex isn't a good idea, you know.