It replaces the \ newline characters in the code to HTML line breaks (<br />) so these become new lines in HTML.
{{ "I like Emarsys Scripting Language.\nYou will like it too."|nl2br }}
Result
I like Emarsys Scripting Language.<br />
You will like it too.