How to remove the newline character from the input parameters?

Hi All,

Is there any option to remove the newline character from the input parameters?

Thanks and Regards,
Ramesh

Jinja filter:
{{ ctx().param | replace("\r\n","") | trim }}