XP is just a number | |
PerlMonks |
Re^4: [Perl-CGI] Print non-interpolated stringby Digioso (Sexton) |
on Apr 04, 2014 at 09:45 UTC ( [id://1081098]=note: print w/replies, xml ) | Need Help?? |
Thanks, I managed to fix it. The documentation is... let's say not really clear on how to use it. It says: $escaped_string = escapeHTML("unescaped string"); But for manual use it's $escaped_string = $cgi->escapeHTML("unescaped string"); Unfortunately this is not mentioned in the documentation but Google found the Syntax for me. This method is not importet by using 'use CGI;'. It's a method on the $cgi-Object. :) And you're right: This method is used automatcally only for forms created using CGI.pm and not on my self-written HTML-code.
In Section
Seekers of Perl Wisdom
|
|