Handlebars to split multi-line street address

Why doesn’t the below handlebars expression work correctly? Split doesn’t seem to work with \r\n.

I figured out how to do it using info from one of the Related posts that popped up!

Which other post was it? Happy to see the recommendation engine churning out solutions!

Using jsonEncode will mess up special characters in the original string, you might be better off using a regular expression for this:

{{regexMatch record.address "^(.+)$" 0 "gm"}}