SyntaxFix
Write A Post
Hire A Developer
Questions
Have you tried using the replaceAll method to replace any occurence of \n or \r with the empty String?