title: Why is my jquery datatables createdrow function not working?
body: <p>I am trying to use the Datatables Rows Created Callback to modify the data in the row before drawing it. What I am trying to do is replace all <code>&amp;lt;</code> and <code>&amp;gt;</code> with <code>'&lt;'</code> and <code>'&gt;'</code> so I can put a line break in each cell and have text on separate lines. <code>'\n'</code> or <code>linefeed</code> does not work.</p>
  
  <pre><code>var oTable = $('#table').DataTable( { 
        "createdRow" : function( row, data, index) {
           console.log( 'DATA WAS ' + data[0]);
           data[0] = data[0].replace(/&amp;lt;/g,'&lt;').replace(/&amp;gt;/g,'&gt;');
           console.log( 'DATA IS ' + data[0]);
         }
  </code></pre>
  
  <p>in the console I can see the data being modified correctly. But its not actually modifying the table. Is there a way to do this? or is the createdRow callback called after the row has already been drawn?</p>