Perhaps this is not quite UA related.

I have always been wondering how to get a multiline comment to render
nicely (from a text areas resulting flowdata), with <br/> in a html email
approval response in a workflow.

I have tried a lot of regexes

like

mystring.replace(/\n|\r\n|\r/g, '<br/>')
and that sort of stuff.

I always end up with everything on one line.

Never found out how. Does anyone know a way to do it properly?