How can I replace a newline (in a plain text field) with a comma?
I figured out that the best way to do this was to replace the newline character \n.
Final code:
{{ plainText|replace({ &quot;\n&quot; : &quot;, &quot;}) }}