Use html instead of text for error return (refs #3505)