Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to properly display the info with carriage returns?
Message
 
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01634462
Message ID:
01634497
Views:
18
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform