title: Using quotes in Twig ternary operators
body: <p>How does one prevent quotes from being escaped when used in a twig ternary operator?  My desire is <code>&lt;div id="my_id"&gt;my div11&lt;/div&gt;</code> (or <code>&lt;div id='my_id'&gt;my div11&lt;/div&gt;</code>), however, as seen my results are different.</p>
  
  <pre><code>{% set id="my_id" %}
  &lt;div{{ id?" id='"~id~"'" }}&gt;my div1&lt;/div&gt;
  &lt;div{{ id?' id="'~id~'"' }}&gt;my div2&lt;/div&gt;
  &lt;div{{ id?" id='#{id}'" }}&gt;my div3&lt;/div&gt;
  &lt;div{{ id?" id=/'#{id}/'" }}&gt;my div4&lt;/div&gt;
  &lt;div{{ id?' id='~"'"|raw~id~"'"|raw }}&gt;my div5&lt;/div&gt;
  &lt;div{{ id?' id='~'"'|raw~id~"'"|raw }}&gt;my div6&lt;/div&gt;
  &lt;div{{ id?" id="~id }}&gt;my div7&lt;/div&gt;
  &lt;div{{ id?' id='~id }}&gt;my div8&lt;/div&gt;
  &lt;div{{ id?" id=#{id}" }}&gt;my div9&lt;/div&gt;
  
  {% set id="" %}
  &lt;div{{ id?" id='"~id~"'" }}&gt;my div1&lt;/div&gt;
  &lt;div{{ id?' id="'~id~'"' }}&gt;my div2&lt;/div&gt;
  &lt;div{{ id?" id='#{id}'" }}&gt;my div3&lt;/div&gt;
  &lt;div{{ id?" id=/'#{id}/'" }}&gt;my div4&lt;/div&gt;
  &lt;div{{ id?' id='~"'"|raw~id~"'"|raw }}&gt;my div5&lt;/div&gt;
  &lt;div{{ id?' id='~'"'|raw~id~"'"|raw }}&gt;my div6&lt;/div&gt;
  &lt;div{{ id?" id="~id }}&gt;my div7&lt;/div&gt;
  &lt;div{{ id?' id='~id }}&gt;my div8&lt;/div&gt;
  &lt;div{{ id?" id=#{id}" }}&gt;my div9&lt;/div&gt;
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>&lt;div id=&amp;#039;my_id&amp;#039;&gt;my div1&lt;/div&gt;
  &lt;div id=&amp;quot;my_id&amp;quot;&gt;my div2&lt;/div&gt;
  &lt;div id=&amp;#039;my_id&amp;#039;&gt;my div3&lt;/div&gt;
  &lt;div id=/&amp;#039;my_id/&amp;#039;&gt;my div4&lt;/div&gt;
  &lt;div id=&amp;#039;my_id&amp;#039;&gt;my div5&lt;/div&gt;
  &lt;div id=&amp;quot;my_id&amp;#039;&gt;my div6&lt;/div&gt;
  &lt;div id=my_id&gt;my div7&lt;/div&gt;
  &lt;div id=my_id&gt;my div8&lt;/div&gt;
  &lt;div id=my_id&gt;my div9&lt;/div&gt;
  
  &lt;div&gt;my div1&lt;/div&gt;
  &lt;div&gt;my div2&lt;/div&gt;
  &lt;div&gt;my div3&lt;/div&gt;
  &lt;div&gt;my div4&lt;/div&gt;
  &lt;div&gt;my div5&lt;/div&gt;
  &lt;div&gt;my div6&lt;/div&gt;
  &lt;div&gt;my div7&lt;/div&gt;
  &lt;div&gt;my div8&lt;/div&gt;
  &lt;div&gt;my div9&lt;/div&gt;
  </code></pre>