Basic validation checks for matching opening and closing tags.  Self-contained, does not use an outside service.