diff --git a/addons/pager/jquery.tablesorter.pager.js b/addons/pager/jquery.tablesorter.pager.js index 7fd4d47b..26836fe0 100644 --- a/addons/pager/jquery.tablesorter.pager.js +++ b/addons/pager/jquery.tablesorter.pager.js @@ -279,7 +279,11 @@ tds += ''; for ( j = 0; j < d[i].length; j++ ) { // build tbody cells - tds += '' + d[i][j] + ''; + var temp = $("").html(d[i][j]); + var inner = temp.find("td"); + temp = inner.length ? inner : temp.wrap("
").parent(); + + tds += temp.wrap("
").parent().html(); } tds += ''; }