Posted on 2008-11-26 06:02:04-08 by uchino
unescapeHTML edit text

Sorry, my English is poor.

I hope that unescapeHTML does not edit 'not escaped text'.

ex.

my $text = 'http://xxx.yyy.com/foo.cgi?aaa&bbb&ccc/111/222/333/xxx;yyy;zzz;'; # Yes, this is strang +e URL, but I found it. $text = unescapeHTML($text);

resalt: http://xxx.yyy.com/foo.cgi?aaabbb&ccc/111/222/333/xxxyyy;zzz;

unescapeHTML mistakes '&bbb&ccc/111/222/333/xxx;' for escaped text.
I think line 154 in Util.pm $_ ----------> "&$_;"
or
line 144 $unescape =~ s[&(.*?);]{ ----------> $unescape =~ s[&([\w#]+?);]{

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.