in reply to Re: Replacing new line characters from HTML TEXTAREA submissions
in thread Replacing new line characters from HTML TEXTAREA submissions

Thankyou!

I changed my code to read

$info =~ s/(\r?\n)+/<p>/g;

and now it works (and catches blank lines too).

--
The Original Posting Monk

  • Comment on Re: Re: Replacing new line characters from HTML TEXTAREA submissions
  • Download Code