Improved meta tag handling