Auto-generated HTML woes being handled