HTML::Entities

Gisle Aas (aas@bergen.sn.no)
Wed, 9 Jul 1997 11:18:42 +0200


I always hated the decision I once made about letting
decode_entities() and encode_entities() modify it's argument.  Now I
am hoping perl5.004's wantarray can save me.

The plan is to only let these routines modify their argument if

 $] < 5.004 and !defined(wantarray)

Do you think this will break any existing code?

After some more time has passed I will add "require 5.004" to the
module.  Perhaps it is better to just add "require 5.004" right away?

I also read http://www.w3.org/TR/WD-html40/charset.html today.  It
looks like we should start to support Unicode soon (which means that I
have to finish my Unicode module before I do any more libwww-perl
hacking :-)

They also now use the hexadecimal entities like &#xE5; which
HTML::Entities should support.

Regards,
Gisle