However, as the snippet has JavaScript in it, it needs to be wrapped with {literal} tags in the output template, but of course when you do that, it doesn't process the variable from the array:
{literal}
{$item.remoteimage_snippet}
{/literal}
Is it even possible to extract the snippet within literal tags, or does smarty start to eat itself? For reference, the snippet looks like this:
<a id='8U7eAtVYRcZZvolcN-XWTw' class='gie-single' href='http://www.gettyimages.co.uk/detail/HA8271-001' target='_blank' style='color:#a7a7a7;text-decoration:none;font-weight:normal !important;border:none;display:inline-block;'>Embed from Getty Images</a><script>window.gie=window.gie||function(c){(gie.q=gie.q||[]).push(c)};gie(function(){gie.widgets.load({id:'8U7eAtVYRcZZvolcN-XWTw',sig:'xsRNMqHbH3vZI8R3Nky7Cky6BNNwUBPGMjQdiuT1cuE=',w:'511px',h:'335px',items:'HA8271-001',caption: true ,tld:'co.uk',is360: false })});</script><script src='//embed-cdn.gettyimages.com/widgets.js' charset='utf-8' async></script>
updated by @iamtimbo: 11/13/17 12:27:18AM