Modified regex that tests for HTML to be more relaxed in tag tests.