Gossamer Forum
Quote Reply
Textareas
If I enter &lt; into a textarea I see <

Is there I way I can get it to not do that?

Currently I'm using perl...

Code:
$input->{code} =~ s/&([lg]t;)/&amp;$1/sg;

Is there another easier way?
Quote Reply
Re: [Paul] Textareas In reply to
How about adding an ENCODE=text/plain to the FORM tag? Does that make a different? Are you sure that it's the browser that is doing this, and not any other modules you might be using -- a template parser or something?

As for an easier way of doing it, I would recommend using the module HTML::Entities:

http://search.cpan.org/...lib/HTML/Entities.pm

- wil