remove or \r in javscript or C# : 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\r\hi\r\

> \r means line break or next line

I try to this apporach to replace :

    text=text.replace("r",",");

but dosent work 
