fixed HTML unescaping, added 'html' metadata format