title: sorting problem with datatables and jsonresult
body: <p>I'm using datables (datatables.net) in combination with sAjaxSource</p>
  
  <p>like this</p>
  
  <pre><code> $(document).ready(function() {
  
  
              $('#userTable').dataTable({
                  "sAjaxSource": '&lt;%= Url.Action("GetUserData", "Home") %&gt;',
                  "bJQueryUI": true,
                  "sPaginationType": "full_numbers",
                  "bStateSave": true,
                  "bRetrieve": true,
                  "aoColumns":
               [
                  { "bSortable": false },
                  null,
                  { "sType": "title-string" },
                  null,
                  null,
                  null,
                  null,
                  null
               ]
              });
          });
  </code></pre>
  
  <p>the server method for this is like this</p>
  
  <pre><code>public JsonResult GetUserData()
  {
     IList&lt;string[]&gt; userList = GetUserList();
     var sendData = new{aaData = userList};
     return new JsonResult {JsonRequestBehavior = JsonRequestBehavior.AllowGet, Data = sendData};
  }
  </code></pre>
  
  <p>everything works fine here, I can see the data in the table.
  but, some of my properties of the user include some links to pictures 
  for example </p>
  
  <pre><code>  userData[0] = string.Format("&lt;img src='{0}' alt='{1}' title='{1}' /&gt;", picUrl, title);
  </code></pre>
  
  <p>but in the table itself there is always the "/" missing. so the sorting over these columuns don't work. if i do a </p>
  
  <pre><code> userData[0] =  string.Format("&lt;img src='{0}'&gt;&lt;/img&gt;", imgUrl);
  </code></pre>
  
  <p>the endtag is missing... in the tablecell the value is always</p>
  
  <pre><code>&lt;img src='url' title='abc'&gt;
  </code></pre>
  
  <p>so its either '/' missing or the whole endtag of img.</p>
  
  <p>the start of the  json result:</p>
  
  <pre><code>{"aaData":[["\u003cimg src=\u0027/Content/image.png\u0027 class=\u0027profilePicture\u0027 /\u003e", ...[other elements]
  </code></pre>
  
  <p>did anybody else had this problem? </p>
  
  <p>edit: i've just noticed it also converts ' to "  </p>