title: how to show html in grails?
body: <p>I have a domain class that has a string variable containing HTML code. I want to display this code on myxml.gsp.</p>
  
  <p>For this I've written the following code:</p>
  
  <p><strong>Learn.groovy</strong></p>
  
  <pre><code>public class Learn {
  
      String content = ("&lt;html&gt;&lt;head&gt;&lt;title&gt;Learning Grails&lt;/title&gt;
         &lt;body&gt;Grails is fun&lt;/body&gt;&lt;/html&gt;");
  
  }
  </code></pre>
  
  <p><strong>myxml.gsp</strong>  </p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Xml Output&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
       &lt;p&gt;${learn.content}&lt;p&gt; 
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>However it is unable to fetch value for "content", getting the error: <code>"Cannot get property 'content' on null object"</code>. What I am doing wrong? Is there any better way to accomplish this?</p>