stereomaniac1,
<html>
<head>
<style>
p { color: red; }
</style>
<script>
function a() {
var table = document.body.children[0];
var tdList = table.getElementsByTagName('td');
for (var i=0; i<tdList.length; i++) {
text = tdList[i].children[0].innerHTML;
tdList[i].replaceChild(document.createTextNode(text), tdList[i].children[0]);
} alert(table.innerHTML);
}
</script>
</head>
<body>
<table>
<tr>
<td>
<p>565</p>
</td>
</tr>
<tr>
<td>
<p>120</p>
</td>
</tr>
</table>
<input type="button" value="Click" onClick="a()">
</body>
</html>