Add support for HTML responses

Same mechanism than for XML.