Search code examples
perlhtml-escape-characters

Perl Escape::HTML function doesn't escape #?


Managed to narrow the code down a lot more:

http://pastebin.com/J40Atm9m

Sorry to be a pain but I really thought I had it cracked by using uri_escape in the GetQueryString subroutine but now I'm really out of ideas otherwise I wouldn't ask.

Any insights are much appreciated.

Martin


Solution

  • HTML::Escape isn't supposed to escape "#" because "#" isn't unsafe for HTML.The problem is that you're not URI-escaping your data before you're putting it into a URI; use URI::Escape for that.