title: Custom Tag Library in grails not passing HTML tags out properly
body: <p>I am learning grails using the definitive guide to grails 2 (using grails 2.3.7), and when I'm looking at the custom tag library it gives an example custom tag as follows:</p>
  
  <pre><code>    def repeat = { attrs, body -&gt;
          int n = attrs.int('times)
          n?.times { counter -&gt;
                out &lt;&lt; body(counter +1)
          }
      }
  </code></pre>
  
  <p>so when I use this tag like so:</p>
  
  <pre><code>   &lt;g:repeat times="3"&gt;
        Hello number ${it}&lt;br&gt;
     &lt;/g:repeat&gt;
  </code></pre>
  
  <p>I expect to get three separate lines on my rendered HTML:</p>
  
  <pre><code>   Hello number 1
     Hello number 2     
     Hello number 3
  </code></pre>
  
  <p>Instead I get:</p>
  
  <pre><code>   hello number 1&lt;br&gt;hello number 2&lt;br&gt;hello number 3&lt;br&gt;
  </code></pre>
  
  <p>I have found methods that look like they should help, like decodeHTML() however I am thus unable to change the output that I want, and I'm not sure what I'm doing wrong.</p>
  
  <p>I have tried doing:</p>
  
  <pre><code>   out &lt;&lt;body.decodeHTML()
  </code></pre>
  
  <p>but I get a null pointer error...</p>