Trying to use HTML node to get text other then text in <span>

trying to use this tutorial

but the thing i am tring to get isnt in .span.node-red-latest-version
it is in some like a.node-red-latest-version for example but it seems like the HTML node automatically adds the .span and the HTML node just takes in what ever is after that as a
n input

Can you post a screenshot of the html node config and what you see in the debug please. You can paste a screenshot here directly.

The HTML node does not automatically add a .span. It just does what you tell it to.

The current version of the Node-RED web site's home page has the version number here:

So it really is in a span. However, that is not relevant since the element has a unique class name.

The only selector you need is .node-red-latest-version

I just tested that and it correctly returned the version number.


i tried all combinations of with the .div without each individual phone number and the column

[{"id":"df3a2045.decdf","type":"html","z":"92c3b0e.26b935","name":" #2","property":"","outproperty":"","tag":"","ret":"attr","as":"single","x":810,"y":1540,"wires":[["82116663.166398"]]},{"id":"82116663.166398","type":"html-to-text","z":"92c3b0e.26b935","name":"","x":950,"y":1540,"wires":[["8406ac6.b7c615"]]},{"id":"8406ac6.b7c615","type":"debug","z":"92c3b0e.26b935","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1090,"y":1540,"wires":[]},{"id":"d5113804.f10b28","type":"http request","z":"92c3b0e.26b935","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":670,"y":1540,"wires":[["df3a2045.decdf"]]},{"id":"1592f0af.42084f","type":"inject","z":"92c3b0e.26b935","name":"","props":[{"p":"f","v":"f","vt":"str"}],"repeat":"","crontab":"00 07 * * *","once":false,"onceDelay":0.1,"topic":"","x":510,"y":1540,"wires":[["d5113804.f10b28"]]}]

You can't use the class names there because they aren't unique. might not be unique either. However, if you use just .pl-md-3 you will get an array output and you might be lucky and have only a single entry.

If you do chose that div though, you will still need to drill down further if you are wanting the phone numbers.

Without being able to see the whole HTML, I can't give you a more accurate response.

The real problem here is that you haven't explained what you are trying to do and what kind of page you are looking at nor exactly what you want to get. I can only assume that you got the example from the cookbook working.