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.
That is true, but it would fail on attributes within the tags. This example has a practical purpose: to check 3rd-party code before inserting into our pages...