Add more lenient support for HTML attributes and values