Twig include with noscript tag rendered as a string and not code So I have an include file.

&lt;noscript&gt;
  &lt;img
    src="{{ srcImage }}"
    alt="{{ alt }}"
  /&gt;
&lt;/noscript&gt;


I am including like standard:

{% include '_includes/partials/image-noscript' %


but for some reason it is generating the code like so…

&lt;noscript&gt;
  &amp;lt;img
    src="http://plowmancraven-v4.loc/imager/uploads/images/general/3172/PC-Enviro-Generic-London-shutterstock_370946690_3488bcae28a5a46889970c4f238b0c7c.jpg"
    alt="PC Enviro Generic London"
  /&amp;gt;
&lt;/noscript&gt;


Edit: Here are some of the things I have tried but nothing has solved this issue yet.

{%- include '_includes/partials/image-noscript' -%}
{% autoescape false %}{% include '_includes/partials/image-noscript' %}{% endautoescape %}


inside the included file:

&lt;noscript&gt;&lt;img src="{{ srcImage }}" alt="{{ alt }}" /&gt;&lt;/noscript&gt;

{% spaceless %}&lt;noscript&gt;&lt;img src="{{ srcImage }}" alt="{{ alt }}" /&gt;&lt;/noscript&gt;{% endspaceless %}

{% autoescape false %}
&lt;noscript&gt;
  &lt;img
    src="{{ srcImage }}"
    alt="{{ alt }}"
  /&gt;
&lt;/noscript&gt;
{% endautoescape %}

{% autoescape false %}&lt;noscript&gt;{% endautoescape %}
{% autoescape false %}
  &lt;img
    src="{{ srcImage }}"
    alt="{{ alt }}"
  /&gt;
{% endautoescape %}
{% autoescape false %}&lt;/noscript&gt;{% endautoescape %}
It's escaping the text in the default (html) context, which should not be happening for a template you include

I suspect this is due to a larger issue, as templates that are included should not be escaped in this manner.

You can change the escaping strategy using block tags around the code, though:

{% autoescape false %}
{% endautoescape %}


cf: autoescape