Using jQuery text I received a string that contains a lot of \u00A0 characters. Also, I received a lot of \r\n\r\n … in sequence.
To output I need to replace the \u00A0 character by white space globally. I also need from the \r\n sequence like \r\n\r\n\r\n leave only one sign \n.
Is it possible to do this with JavaScript replace?
1 Answer