Replace Breaks line to " "

Hi,

I have a Multiline TextInput that can write text with breaklines. I wonder if I can replace a text with break lines to a white space like:

TextInput text:

My text line1
line2
line3

to:

My text line1 line2 line3

Is posible to do that in UNO… I know that in c# I do this like:

string = string.Replace(Environment.NewLine, " ");

Thanks!

Yup :slight_smile:

https://www.fusetools.com/developers/api/uno/string/replace_e671fcec

s = s.Replace("\n", " ");