Excel export and rich text items

Hello,I am working on an action exporting data to excel.

My problem is that some fields of the form i wanna export are rich text fields.

So on my excel sheet, i have plenty of tabulations an backspaces (chr(10) & chr(13))

I want to remove those redundant characters but the function ‘trim’ doesn’t work.

Can you please help me with this?