Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to properly display the info with carriage returns?
Message
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
How to properly display the info with carriage returns?
Divers
Thread ID:
01634462
Message ID:
01634462
Vues:
28
Hi everybody,

I have the following markup:
<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
\n\r

on the page instead of the normal breaks. What is the proper way to handle this situation?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform