Adding a new line constant to a text node

I have the following function passing text to a dashboard text node.

msg.payload = "line 1";

If I wanted to change the payload to msg.payload = "line 1 line 2"

How do I put line 2 on a new line? I have tried "line 1 \n line 2" but it does not work.

using html break did the trick!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.