Html node not working on string

Does the html node require more than just a string in msg.payload or does the template node encode the content ? (ie. it looks like html but actually uses an encoded string?)

inject node > template node (as plain text) > html node, selector: td

Template node content:

<td>some content</td>
<td>blabla<br/><a href="#" rel="nofollow"
        title="some title">blabla</a>
</td>

No results.

example flow:

[{"id":"3f0c5e0f41be1217","type":"inject","z":"dd601c6b09710814","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":320,"y":920,"wires":[["4719a15d81f40618"]]},{"id":"4719a15d81f40618","type":"template","z":"dd601c6b09710814","name":"","field":"payload","fieldType":"msg","format":"html","syntax":"plain","template":"<td>some content</td>\n<td>blabla<br/><a href=\"#\" rel=\"nofollow\"\n        title=\"some title\">blabla</a>\n</td>\n","output":"str","x":480,"y":920,"wires":[["3b51dad0260b58d7"]]},{"id":"3b51dad0260b58d7","type":"html","z":"dd601c6b09710814","name":"","property":"payload","outproperty":"payload","tag":"td","ret":"text","as":"single","chr":"_","x":610,"y":920,"wires":[["e5af80508a63d73d"]]},{"id":"e5af80508a63d73d","type":"debug","z":"dd601c6b09710814","name":"debug 44","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":740,"y":920,"wires":[]}]

Try wrapping your content in a div

is that a workaround or a bug ? No difference btw.

try wrapping in a <table></table> tag.

There was a change to library some time ago (like maybe 2 years ago) that affected html fragments are handled.

Ah, here is a follow up issue: feature: HTML: add option to handle fragments rather than whole docs · Issue #3423 · node-red/node-red · GitHub

oh, and there is more here: HTML node not extracting content · Issue #3137 · node-red/node-red · GitHub (you might recognise one of the conversation participants :wink:

lol its been a while - guess it requires the complete html, table and tr included, then it indeed works. Have to see how i can append it within a flow with elements.