I'm posting a form to an ASP.Net MVC action that returns a JSON object. This object is received, parsed and bound correctly. So I know the service is working correctly and the data is understandable.
The issue is that I have a string that may contain line breaks /r
that are getting removed at some point.
This is the JSON coming into the browser captured in Chrome's network->response tab.
"PropertyModel":{"Id":6131,"Ref":"61267","Address":"16\rSpringfield Green\rHunslet","PostCode":"LS10 2EJ "}
However in my view these aren't rendered. Regardless of whether I wrap it in a <pre>
or use white-space:pre;
How do i go about getting my /n
back!?