Note that if ? is the first character, your strpos function doesn't work as expected (0 evaluates as false but should be true). Works fine for a URL, but worth watching out for.
I made a slighty modification for html_table that allows for the first row of the area to be treated as a header with it's own attributes (header_attr). This is big for me, and I would expect a lot o ...