The following jQuery script allows you to search for and replace the contents of a table cell with some other content. This can be used to dynamically format your table data.
It's quite useful for colour coding text. In the example below I turn all PENDING text red.
<script>
$("td").filter(
function(){
return $(this).text() === "PENDING";}).
text("<span style='background-color:red'>PENDING</span>");
</script>