Escape failure_reason in html