title: Insert HTML into view from AngularJS controller
body: <p>Is it possible to create an <strong>HTML</strong> fragment in an AngularJS controller and have this HTML shown in the view?</p>
  
  <p>This comes from a requirement to turn an inconsistent JSON blob into a nested list of <code>id: value</code> pairs. Therefore the <strong>HTML</strong> is created in the controller and I am now looking to display it.</p>
  
  <p>I have created a model property, but cannot render this in the view without it just printing the <strong>HTML</strong>.</p>
  
  <hr>
  
  <p>Update</p>
  
  <p>It appears that the problem arises from angular rendering the created HTML as a string within quotes. Will attempt to find a way around this.</p>
  
  <p>Example controller :</p>
  
  <pre><code>var SomeController = function () {
  
      this.customHtml = '&lt;ul&gt;&lt;li&gt;render me please&lt;/li&gt;&lt;/ul&gt;';
  }
  </code></pre>
  
  <p>Example view :</p>
  
  <pre><code>&lt;div ng:bind="customHtml"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Gives :</p>
  
  <pre><code>&lt;div&gt;
      "&lt;ul&gt;&lt;li&gt;render me please&lt;/li&gt;&lt;/ul&gt;"
  &lt;/div&gt;
  </code></pre>