[ic] textarea_get filter - why not reverse of textarea_put?

Jonathan Clark jonc@webmaint.com
Sat, 14 Apr 2001 14:09:00 +0100


[ic 4.6.4]

Hi All,

Looking at Interpolate.pm, the filter definitions at lines 903 on:

	'textarea_put' => sub {
					my $val = shift;
					$val =~ s/\&/\&/g;
					$val =~ s/\[/[/g;
					$val =~ s/</&lt;/g;
					return $val;
				},
	'textarea_get' => sub {
					my $val = shift;
					$val =~ s/\&amp;/\&/g;
					return $val;
				},

Why is the textarea_get not the reverse of the put?

More use to me would be:

	'textarea_get' => sub {
					my $val = shift;
					$val =~ s/\&amp;/\&/g;
					$val =~ s/\&#91;/\[/g;
					$val =~ s/&lt;/</g;
					return $val;
                        }

thanks for any response.

Jonathan
Webmaint.