I am receiving a comments from service.
If I get this comment “hello world” it is printing as it is but when I receive Comments like this
“hello
world” then I am receiving nothing I write a function for it but it also doesn’t work
function NextLineFix(Call) {
return Call.replace("\n", '<br>');
}
Can any body help please….!
Perhaps you also have carriage return characters in the string (‘\r’)? Does this work better for your issue: