in reply to Re^3: [Perl-CGI] Print non-interpolated string
in thread [Perl-CGI] Print non-interpolated string
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.
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: [Perl-CGI] Print non-interpolated string
by mr_mischief (Monsignor) on Apr 04, 2014 at 16:18 UTC | |
by Digioso (Sexton) on Apr 06, 2014 at 10:10 UTC | |
Re^5: [Perl-CGI] Print non-interpolated string
by Anonymous Monk on Apr 05, 2014 at 08:06 UTC | |
by Digioso (Sexton) on Apr 06, 2014 at 10:04 UTC |
In Section
Seekers of Perl Wisdom