TurboGears / tg2

Python web framework with full-stack layer implemented on top of a microframework core with support for SQL DBMS, MongoDB and Pluggable Applications
http://www.turbogears.org/
Other
803 stars 77 forks source link

Message in ErrorController should not include html tags #106

Closed amol- closed 5 years ago

amol- commented 5 years ago

When the error controller responds in JSON, the message includes a <p> tag. That shouldn't be the case:

{
    "message": "<p>We're sorry but we weren't able to process  this request.</p>",
    "code": 404,
    "prefix": ""
}

it only should be there in the HTML response.