Wes Gamble wrote: > _why wrote: > >> I totally agree with you regarding preserving the original markup. In >> fact, >> the latest Hpricot code (in subversion) has two methods for output: >> >> * `to_html` which outputs fully closed tags and strips out bogus end >> tags. >> * `to_original_html` which outputs the original document (as close as >> it can) >> with your modifications made. >> > > sweet. Actually, I'm kind of hoping that I can make mods. to the parse tree, but that no "unnecessary fixing" of bad HTML occurs. So I'm wondering does modifying the parse tree at all and then outputting it imply that all of the malformed HTML will be fixed/modified in some way or not? Thanks, Wes -- Posted via http://www.ruby-forum.com/.