Broken image using custom View template I am trying to print each row with custom HTML. I need to display the image field wrapped inside the image link. I have this in the tow style output template:

&lt;div class="myRow"&gt;
    &lt;div class="myImg"&gt;
        &lt;a href="&lt;?php print $fields['field_news_link']-&gt;content; ?&gt;" target="_blank"&gt;&lt;img src="&lt;?php print $fields['field_news_image']-&gt;content; ?&gt;" /&gt;&lt;/a&gt;
    &lt;/div&gt;
    &lt;a href="&lt;?php print $fields['field_news_link']-&gt;content; ?&gt;"&gt;&lt;?php print $fields['field_news_source']-&gt;content; ?&gt; /&gt;&lt;/a&gt;
&lt;/div&gt;


The link part is working, but the image does not display. In the HTML I get:

&lt;img src="&lt;img src=" http:="" localhost:8888="" test="" sites="" default="" files="" styles="" featured_image="" public="" 10.27.14%20cnbc.png?itok="MGeDqtuK&amp;quot;" width="200" height="150" alt="my alt tag"&gt;


On the front end, I see the broken image square and '/> directly after. What am I doing wrong?
You need to print image src like this:

&lt;?php print file_create_url($uri); ?&gt;


Just change $uri with uri of your image ($fields['field_news_image']...)

Take a look on function file_create_url as well.