cgi.escape doesnt work due to needed < and >. Use replace instead.
Forgot to self-close the meta tag.