From: "Mark J. Reed" Date: 2003-07-15T12:02:50+09:00 Subject: Re: ruby-specific CGI question (I think) Typo correction: On Mon, Jul 14, 2003 at 10:49:41PM -0400, Mark J. Reed wrote: > On Tue, Jul 15, 2003 at 11:43:28AM +0900, Mark J. Reed wrote: > > def fix_form(cgi, *args, &block) > > return cgi.form(*args, &block).gsub(/<\/?fieldset[^>]*/i, '') > > end Left off the final >, which is no good. :) def fix_form(cgi, *args, &block) return cgi.form(*args, &block).gsub(/<\/?fieldset[^>]*>/i, '') end > Note, however, that this will remove *all*
tags in the > form, so if you actually have legitimate uses for them, this isn't > the way to go. You would need to make a smarter munger in that case. -Mark