Convert \r\n characters to new line in Ionic 3


#1

Hi , I wat to be able to convert \r\n characters in a string to new lines
Example
John is waiting now.\r\nCan we tell you about him. \r\nHe is a great person

Converted to

John is waiting now.
Can we tell you about him.
He is a great person

Tried this but to no avail

nl2br(text: string) {
       return text.replace(new RegExp('\r?\n','g'), '<br />');

   }

Any help is appreciated