Thanks so much Andrew but doesn’t work, the problem for me is the double tag <?php
<?php $featured_content = '<img src="'<?php bloginfo("template_directory"); ?>'/images/img.png" />'; ?>
this give me this error
Parse error: syntax error, unexpected '?' in /web/htdocs/www.etc...