How can I remove or replace \r in javascript text or in backend code in C# I have a variable in javascript like this:
var text="name\rhi\r"
\r means line break or next line
I try to this approach to replace:
text=text.replace("\r",",");
but does not work