html escape detail for error message