Added support to html type to set result content type correctly.