title: jqGrid - Insert custom HTML into cell
body: <p>I am trying to convert a plain old html table to a jqGrid.  The old table has a column containing tags which are constructed using an unordered list and list items.</p>
  
  <p><a href="http://jsfiddle.net/TheSneak/hVhFq/">Here is an example (jsfiddle)</a> of the table before and the jqGrid after. </p>
  
  <p>In this example I am using a <a href="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3acustom_formatter">custom formatter</a> which uses <a href="https://github.com/BorisMoore/jquery-tmpl">jQuery Templates</a> to construct DOM elements and then the formatter returns the $.html() from the resulting DOM elements.</p>
  
  <pre><code>function getTagCellContents(cellvalue) {
      var domitems=$("#jqgrid-tag-list-item").tmpl({tags: callvalue});
      return domitems.html();
  }
  </code></pre>
  
  <p>The problem I had with this is that whitespace included in the resulting html causes the rows to be too high.  This also results in awkward "Title" attributes on the cells.</p>
  
  <p>Does the jqGrid provide an API for inserting DOM objects directly into the cell rather than by returning text from the custom formatter?  What is the best practice for placing customized html into a jqGrid cell?</p>