Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to properly display the info with carriage returns?
Message
 
 
À
07/04/2016 04:27:26
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01634462
Message ID:
01634497
Vues:
19
>You need to convert '\r\n' to '\n'. Where you do it depends on what else consumes the web call.
>On the server side:
response.Replace(Environment.NewLine,"\n");
On the browser end:
var result: string = alertMessage.replace('\r\n', '\n');
I tried on the server side, but the result is not what I'd like (the new lines are not properly displayed). I may try now Thierry's idea.

See the attached picture.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform