Do you want to remove the text within the table tags, too, or just the tags themselves? (If you want to strip tags, you might want to consider the [man]strip_tags/man function, which allows you to specify a list of tags you want to allow if you do not want to strip out all tags.)