When using mustache - / gets converted to /

Why is / (Slash) changed to / when using mustache ?

I have made this test setup

[{"id":"c804c18d.255688","type":"inject","z":"fdf95545.a593b8","name":"","topic":"","payload":"TEST / TEST","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":680,"wires":[["42aa4d53.a5633c","65313bf2.c70204"]]},{"id":"42aa4d53.a5633c","type":"function","z":"fdf95545.a593b8","name":"","func":"msg.payload = msg.payload;\n\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":740,"wires":[["2f01ade7.e0468a","3604441.ed06a3c"]]},{"id":"a1e50c57.211b98","type":"debug","z":"fdf95545.a593b8","name":"Output 3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":580,"y":820,"wires":[]},{"id":"2f01ade7.e0468a","type":"template","z":"fdf95545.a593b8","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"This is the payload: {{payload}} !","output":"str","x":410,"y":820,"wires":[["a1e50c57.211b98"]]},{"id":"3604441.ed06a3c","type":"debug","z":"fdf95545.a593b8","name":"Output 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":580,"y":740,"wires":[]},{"id":"65313bf2.c70204","type":"debug","z":"fdf95545.a593b8","name":"Output 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":580,"y":680,"wires":[]}]

From the Template node's sidebar help:

Note: By default, mustache will escape any HTML entities in the values it substitutes. To prevent this, use {{{triple}}} braces.

4 Likes