Replace CR/LF and adding ";" as part of the new text

I need to use a Replace function in order to replace every line break (LF/CR) with this " "

I have a problem to apply this RegEXP globali (to the whole text) and also to include special char “;” in replace function.

Thanks for your help.