- var_dump: documentation ( source)
- strip_tags: documentation ( source)
<?php
$q = <<<EOSRT
Beginning of text
<table data-replace-style-on-save="table">
<thead style="border: 1px solid rgb(204, 204, 204); padding: 3px; vertical-align: top;">
<tr>
<th>Name</th>
<th>Storage Size</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<tt>bytea</tt>
</td>
<td>
1 or 4 bytes plus the actual binary string
</td>
<td>
variable-length binary string
</td>
</tr>
</tbody>
</table>
End of text
<br>
EOSRT;
var_dump( strip_tags($q) );