I have a string coming to my WebApp formatted this way:
GPL.TU01<50;0;100;0;0>
I have to out put it this way:
GPL.TU01
<
50;
0;
100;
0;
0
>
This is what I'm using:
var GET_result_formatted = GET_result;
global_file_content = GET_result;
GET_result_formatted = GET_result_formatted.replace("<", "\r<\r");
GET_result_formatted = GET_result_formatted.replace(';', ";\r");
GET_result_formatted = GET_result_formatted.replace(">", "\r>");
$('#ModalGPLTextarea').val(GET_result_formatted);
But the sad result is this:
GPL.TU01
<
50;
0;100;0;0
>
What am I doing wrong?