To remove lenefeeds and carriage return/line feeds from inside strings and replace them with a single space.
It might be straightforward if you're familiar with regular expressions, but it took me a while to find something that worked.
B4X:
Dim jo As JavaObject = Regex.matcher("[/\r?\n|\r/]", TextToClean)
Return jo.RunMethod("replaceAll", Array(" "))
It might be straightforward if you're familiar with regular expressions, but it took me a while to find something that worked.