function replaceAllSymbols(find, replace, str) {
//find=\n replace=<br/>
//str=tyyrtu\nuiop\nuioui
try {
while (str.indexOf(find) > -1) {
str = str.replace(find, replace);
}
return str;
}
catch (e) { }
}
Can someone assist me in resolving the problem of replacing \n with
using JavaScript?