<p>You forgot to remove the outer single quotes in your first example</p>

<pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="{{'{{queryMatches}}'}}"&gt;
</code></pre>

<p>Try the <code>raw</code> filter if that doesnt work. More info on it <a href="http://twig.sensiolabs.org/doc/filters/raw.html" rel="nofollow">here</a> </p>

CC BY-SA 3.0
2015-07-24T20:39:24.500Z
2015-07-24T20:39:24.500Z
Seán O'Grady
<p>I've encountered on a problem with escaping, where I want some parts of code, not being translated by Twig.</p>

<p>Straight to the problem.</p>

<p><a href="https://elements.polymer-project.org/elements/iron-media-query" rel="nofollow">Polymer</a>, uses the same marking for variables as Twig, and I'm not sure, if it's possible to escape variable as a Twig's variable and transform it to a Polymer's variable</p>

<p>By Twig's documentation, I've end up with this:</p>

<pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="'{{'{{queryMatches}}'}}'"&gt;
</code></pre>

<p></p>

<p>where it translates to:</p>

<pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="'{{queryMatches}}'"&gt;&lt;/iron-media-query&gt;
</code></pre>

<p>The goal is:</p>

<pre><code>&lt;iron-media-query query="(min-width: 600px)" query-matches="{{queryMatches}}"&gt;&lt;/iron-media-query&gt;
</code></pre>

<escaping>
Ignore Twig's variable and transform it to Polymer's variable.
# Ignore Twig's variable and transform it to Polymer's variable.

(Asked by: username_0 on 2015-07-24)

I've encountered on a problem with escaping, where I want some parts of code, not being translated by Twig.
Straight to the problem.
Polymer, uses the same marking for variables as Twig, and I'm not sure, if it's possible to escape variable as a Twig's variable and transform it to a Polymer's variable
By Twig's documentation, I've end up with this:



where it translates to:


The goal is:

**Tags:** escaping


---

## 1 answers

### Answer by username_1 on 2015-07-24. Score: 2 | Accepted answer

You forgot to remove the outer single quotes in your first example


Try the raw filter if that doesnt work. More info on it here


---

