At this time the poll is My favourite poll on PerlMonks is ... and all the html is double escaped
<a href="?node_id=1452">Your first Perl Book</a> - the first one ever ...
Thanks

Replies are listed 'Best First'.
Re: "Voting Booth" nodelet is double escaping (CGI)
by tye (Sage) on Sep 14, 2010 at 00:01 UTC

    That's a bug in CGI.pm that we worked around with a custom wrapper for it. Now that the web servers were upgraded (with no notice), more work is still needed to restore full functionality (the site was down earlier).

    - tye        

      This has been fixed.

      Actually, the custom wrapper for CGI.pm was fine but it doesn't work around these bugs. The wrapper causes '[' and ']' to be escaped in the appropriate places of generated HTML and adds newlines after generated <tr> tags (and defines a couple of methods that are never actually used at this point).

      There are a couple of (design) bugs in CGI.pm related to escaping the HTML of elements for which HTML does not need to be escaped. I have finally filed a bug related to those. You would think that fixing them would require making allowance for backward compatibility. But, maybe not...

      I've once again commented out a few lines (using "#!#" so they are easy to find) of a copy of CGI.pm and fixed those design bugs. I've also fixed a few changes to CGI.pm that broke backward compatibility (hence my ending to the previous paragraph).

      - tye