title: escaping ' to &#39; in golang html template
body: <p>How to prevent escaping <code>'</code> to <code>&amp;#39;</code> in html template:</p>
  
  <pre><code>package main
  
  import (
      "html/template"
      "os"
  )
  
  const tmpl = `&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;{{.Title}}&lt;/title&gt;
      &lt;/head&gt;
  &lt;/html&gt;`
  
  func main() {
      t := template.Must(template.New("ex").Parse(tmpl))
      v := map[string]interface{}{
          "Title": template.HTML("Hello World'"),
      }
      t.Execute(os.Stdout, v)
  }
  </code></pre>
  
  <p>It outputs:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Hello World&amp;#39;&lt;/title&gt;
      &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Desired output: </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Hello World'&lt;/title&gt;
      &lt;/head&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><a href="http://play.golang.org/p/q_f3dUbzOQ" rel="nofollow">playouground</a></p>