in reply to Re: Re: catching newlines from textarea inputin thread catching newlines from textarea input
You may want to look at HTML::Entities instead of hand-rolling all your own entity encodings.