From: Ruby Ruby Date: 2012-06-12T17:00:49+09:00 Subject: Re: cgi class prints garbage in HTML output Marc Heiler wrote in post #1064063: >> must be terminated by an ... end.join("") > > Hmm. You need it to be an Array? Hi Marc not absolutely: finally, I need valid HTML code, nothing more. Preferably would be valid XHTML code, but as far as I know, creating XHTML is not possible with ruby cgi. For ruby 1.8.7 there was a patch http://pablotron.org/?cid=1475 to create XHTML, but I could not find the equivalent for ruby 1.9.3. Instead of the collect iterator, I could probably use the each iterator, but as far as I remember, this one drops even more unwanted garbage into the HTML Text. So I might be better off with the collect iterator. suomi -- Posted via http://www.ruby-forum.com/.