Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

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



[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.


_______________________________________________
Interchange-users mailing list
Interchange-users@lists.akopia.com
http://lists.akopia.com/mailman/listinfo/interchange-users


Search for: Match: Format: Sort by: