mime: fix handling mime in html

This restricts the valid HTML elements in this case to pre, script
and meta.