Mustache in a template node converts {{/}} to "/"

571 views
Skip to first unread message

Ian M

unread,
Apr 1, 2015, 9:53:54 AM4/1/15
to node...@googlegroups.com
I'm using a template node to build some HTML code, but when I use a forward slash (/) within a variable then the slash is converted to "/" within the output.

If msg.test = "foo/bar" then using {{test}} within the template node generates "foo/bar" as an output.  How do I just get "foo/bar"?

Thanks,
Ian

Nicholas O'Leary

unread,
Apr 1, 2015, 9:58:10 AM4/1/15
to Node-RED Mailing LIst
Hi Ian,

use triple brackets to stop Mustache escaping HTML entities - {{{test}}}

Nick

--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages