hey ya,
OK, how do i replace <CR> with \r\n in CGI?
I thought that
should do it? (Seams like not though)Code:$Description = "This is <CR> LINE ONE <CR>LINE 2<CR> LINE THREE"; $Description =~ s/<CR>/\r\n/g;
NE 1?
[oh btw this code:]
makes it output to:Code:$input{'a_text'} = "Line\r\n1\r\n2\r\n3"; $input{'a_text'} =~ s/\r\n/<CR>/g;
Line<CR>1<CR>2<CR>3


Reply With Quote