Help with icon in `text` node

But as I see you trying to show wind direction, it can be done with weather-icons-wind with much nicer graphics and with much less coding. And you may get rid of full set of mateial-icons if you like.

[{"id":"958b98d7.3bc0f8","type":"ui_text","z":"9038de34.04db3","group":"93fae10c.09faa","order":4,"width":"3","height":1,"name":"","label":"WEATHER","format":"{{msg.payload}}","layout":"row-left","x":490,"y":440,"wires":[]},{"id":"6be9676a.1ca8a8","type":"ui_template","z":"9038de34.04db3","group":"93fae10c.09faa","name":"","order":7,"width":0,"height":0,"format":"<link href=\"https://fonts.googleapis.com/icon?family=Material+Icons\" rel=\"stylesheet\">\n<link href=\"https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.10/css/weather-icons.min.css\" rel=\"stylesheet\">\n<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/weather-icons/2.0.10/css/weather-icons-wind.css\"/>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"global","x":500,"y":380,"wires":[[]]},{"id":"ff2b2602.9421f8","type":"inject","z":"9038de34.04db3","name":"span","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"<span class=\"wi wi-2x wi-flood\"></span>","payloadType":"str","x":330,"y":440,"wires":[["958b98d7.3bc0f8"]]},{"id":"f91dab3a.dbf978","type":"ui_text","z":"9038de34.04db3","group":"93fae10c.09faa","order":4,"width":"3","height":1,"name":"","label":"WEATHER","format":"{{msg.payload}}","layout":"row-left","x":490,"y":480,"wires":[]},{"id":"5383bc90.754b74","type":"inject","z":"9038de34.04db3","name":"span ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"<span class=\"wi wi-2x wi-volcano\"></span>","payloadType":"str","x":330,"y":480,"wires":[["f91dab3a.dbf978"]]},{"id":"d70e1410.23ec78","type":"function","z":"9038de34.04db3","name":"","func":"\nmsg.payload = '<span class=\"wi wi-2x wi-wind towards-'+msg.payload+'-deg\"></span>'\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":500,"y":560,"wires":[["f98dfe22.a5c3b"]]},{"id":"601ff63f.480228","type":"inject","z":"9038de34.04db3","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"2","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":190,"y":560,"wires":[["72b91e92.4e0d"]]},{"id":"72b91e92.4e0d","type":"random","z":"9038de34.04db3","name":"","low":"1","high":"360","inte":"true","property":"payload","x":340,"y":560,"wires":[["d70e1410.23ec78"]]},{"id":"f98dfe22.a5c3b","type":"ui_text","z":"9038de34.04db3","group":"93fae10c.09faa","order":4,"width":"3","height":1,"name":"","label":"WIND","format":"{{msg.payload}}","layout":"row-left","x":630,"y":560,"wires":[]},{"id":"93fae10c.09faa","type":"ui_group","z":"","name":"Default","tab":"6ff5405c.a8e6","order":1,"disp":true,"width":"6","collapse":false},{"id":"6ff5405c.a8e6","type":"ui_tab","z":"","name":"TEST","icon":"dashboard","order":3,"disabled":false,"hidden":false}]

image