title: How to have smart-table parse content as HTML / conditional formatting
body: <p>I know that I can format a cell to parse content as a link in ng-repeat:</p>
  
  <pre><code>&lt;a ng-href="{{::domainname}}/{{::row.sector}}/{{::row.cname}}/ipo-{{::row.tickerbb}}.html"&gt;{{::row.cname}}&lt;/a&gt;
  </code></pre>
  
  <p>Here is the <a href="https://jsfiddle.net/ksutine/h7yjxpna/" rel="nofollow noreferrer">fiddle</a>.</p>
  
  <p>How do I make it dynamic, so that if row.tickerbb is null - show a different URL?
  I tried to do it in the controller, looping through the data:</p>
  
  <pre><code>var i = 0;
  $.each(data, function () {
      if (data[i].tickerbb != null) {
          data[i].cname = '&lt;a title="' + data[i].cname + '"' + ' ng-href="' + domainname + '/' + data[i].sector + '/' + data[i].shortcname + '/ipo-' + data[i].tickerbb + '.html"&gt;' + data[i].cname + '&lt;/a&gt;';
      }
      else {
          data[i].cname = '&lt;a title="' + data[i].cname + '" href="Holdings"&gt;' + data[i].cname + '&lt;/a&gt;';
      }
      i += 1;
  })
  </code></pre>
  
  <p>But the results show up as raw html tags:</p>
  
  <p><a href="https://i.stack.imgur.com/mCfog.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mCfog.jpg" alt="enter image description here"></a></p>
  
  <p>How do I do conditional formatting of the smart-table cell? Or is there a way to sanitize cells in smart-tables?</p>