Instead of the HTML widget try the Format String widget – https://appstore.home.mendix.com/link/app/264/
It is very similar to HTML snippet but also let’s you use attribute values as tokens in the HTML.
Hope this helps
Works locally but not in cloud – any tips? This is a folder link to a LAN