Craft renders unwanted quotation marks on some tags
I believe the quotation marks are misleading... What you're seeing in the Safari developers panel is simply a blank space, and Safari is putting quotes around it because it's being interpreted as a "string" by the browser.

Equally, your visual layout is probably just getting screwed up because of empty space between your HTML tags. If you tightened up your HTML tags and removed any spacing in between, the layout might look as you expect it to.

You can easily trim whitespace around Twig tags by using spaceless, or adding dashes.

{% spaceless %}
    &lt;a href="#"&gt;
        &lt;img src="path/to/img" /&gt;
    &lt;/a&gt;
{% endspaceless %}


Remove whitespace before:

{%- for entry in entries %}


Remove whitespace after:

{% for entry in entries -%}


Remove whitespace before &amp; after:

{%- for entry in entries -%}