title: Grails Select tag: adding styles to specific opitions
body: <p>Hi I am trying to make a dynamically created drop down list in grails that emphasizes only certain option tags. Here is what I have:</p>
  
  <pre><code>&lt;g:select class="DropDownList"
      from="${listOfMaps}" 
      optionValue="${{(it.match=='Something'?'&lt;em&gt;':'') + it.thingToPrint
      + (it.match=='Something'?'&lt;/em&gt;':'') }}" 
      /&gt;
  </code></pre>
  
  <p>and this works in the sense that it will print the thing to print, but when it is suppose to add the <code>&lt;em&gt;</code> tag it prints it like this:</p>
  
  <pre><code>&lt;option&gt;&amp;lt;em&amp;gt;ITEM&amp;lt;/em&amp;gt;&lt;/option&gt;
  </code></pre>
  
  <p>And that is not what I need. that prints <code>&lt;em&gt;ITEM&lt;/em&gt;</code> in the drop down list.</p>
  
  <p>Does anyone know how to get it to be this instead:</p>
  
  <pre><code>&lt;option&gt;&lt;em&gt;ITEM&lt;/em&gt;&lt;/option&gt;
  </code></pre>
  
  <p>so that it will print '<em>ITEM</em>' ?</p>
  
  <p>The resources that I have used thus far:</p>
  
  <ul>
  <li><a href="http://grails.org/doc/1.0.x/ref/Tags/select.html" rel="nofollow">http://grails.org/doc/1.0.x/ref/Tags/select.html</a></li>
  <li><a href="http://jira.grails.org/browse/GRAILS-2988" rel="nofollow">http://jira.grails.org/browse/GRAILS-2988</a></li>
  </ul>