In III's terrible OPAC, WebPAC Pro, the Advanced Search screen has all these little nested tables that just hold one label in a table cell and an imput in another. There is no reason they should be tables! So I wrapped each of the tokens in the Web Master with an id, and then wrote this silly function to remove the table markup and just give me labels and form elements. Then I used CSS to make it look the way it should, since this is 2015 and not 1997.
The fact that I had to write this function boggles my mind.