ho i try to get the image source out of a html tag
the html node is configured as:
.observ .temp .wind-container
the html i get that way is:
<img alt="direction"
src="/fileadmin/styles/img/wind/wind-arrow_small-white.png"
style="transform:rotate(-160deg); -ms-transform:rotate(-160deg);
-moz-transform:rotate(-160deg); -webkit-transform:rotate(-160deg);
-o-transform:rotate(-160deg);" class="wdir">
now i tryed lots of things like:
.observ .temp .wind-container img.attr('src')
but no matter what i try i get unmatched selector error messages.
How do i have to write the selector so i get the single values back for src and style?
The other issue i have, if i forward the current result to a node-red-contrib-ui template node, the < and > signs are replaced by < and > an then not rendered as html by the browser. here i'm unsure if this is an error of the html or template node.
example:
[{"id":"88f5ae81.3d8df8","type":"ui_tab","name":"Home","icon":"dashboard","order":"1"},{"id":"9c132289.f50338","type":"inject","z":"2035bcaf.433e24","name":"Every minute","topic":"","payload":"test2","payloadType":"date","repeat":"60","crontab":"","once":true,"x":275,"y":216,"wires":[["a9b51b44.f67088","1761fdd9.eab442"]]},{"id":"1761fdd9.eab442","type":"http request","z":"2035bcaf.433e24","name":"Wetter24 Interlaken","method":"GET","ret":"txt","url":"
http://www.wetter24.de/vorhersage/schweiz/interlaken/18129469/","x":474,"y":371,"wires":[["93bc2fd3.9a5408","dff72f5.816f15","cb2aac8d.fd89e8","df4d242d.c5b888","cadd745.1179688"]]},{"id":"cadd745.1179688","type":"html","z":"2035bcaf.433e24","name":"Winddir","tag":".observ .temp .wind-container","ret":"html","as":"multi","x":690,"y":573,"wires":[["7291fc8b.e18784","7bd760fd.fa9ad"]]},{"id":"7291fc8b.e18784","type":"ui_template","z":"2035bcaf.433e24","tab":"88f5ae81.3d8df8","name":"","group":"Test","order":1,"format":"<span>{{msg.payload}}</span>","x":887,"y":574,"wires":[[]]},{"id":"7bd760fd.fa9ad","type":"debug","z":"2035bcaf.433e24","name":"","active":true,"console":"false","complete":"payload","x":884,"y":623,"wires":[]}]