<div class="alert alert-danger" ng-show="alertType === 'serverError'"> <button type="button" class="close" ng-click="alertType=''" data-dismiss="!alertType==='serverError'"> <span aria-hidden="true">×</span><span class="sr-only">@Labels.close</span></button> <i class="fa fa-exclamation-circle fa-2x"></i> {{ alertMessage }} </div>I am generating the HttpResponseException with this code
throw new HttpResponseException( Request.CreateErrorResponse(HttpStatusCode.InternalServerError, response));The response string contains carriage returns which are displayed as