Fix regression where html code is sent as plain text (#1488649)