Bug#586998: man CGI forgot to mention single quotes

jidanni at jidanni.org jidanni at jidanni.org
Thu Jun 24 11:50:12 UTC 2010


Package: perl-doc
Version: 5.10.1-11
Severity: wishlist
File: /usr/share/man/man3/CGI.3perl.gz

You have neglected to mention

$ perl -wle 'use CGI q(escapeHTML); for (0..0x7F)
   {push my @p,chr,escapeHTML(chr); print join "|", @p if $p[0] ne $p[1]};'
"|"
&|&
'|&#39; <--------------this item
<|&lt;
>|&gt;

when you say

       Provided that you have specified a character set of ISO-8859-1 (the
       default), the standard HTML escaping rules will be used.  The "<" character
       becomes "&lt;", ">" becomes "&gt;", "&" becomes "&amp;", and the quote
       character becomes "&quot;".

By the way, say which quote, "double" or "single". (Answer: double).






More information about the Perl-maintainers mailing list