|Subject:||"entities" option to ->as_HTML not behaving as advertised|
use HTML::TreeBuilder; my $TB = HTML::TreeBuilder->new(); my $html = $TB->parse("This ſoftware has ſome bugs")->eof->element\ ify(); print $html->as_HTML(""); The documentation claims: The optional argument $entities specifies a string of the entities to encode. For compatibility with previous versions, specify '<>&' here. If omitted or undef, all unsafe characters are encoded as HTML entities. If behavior were as described, the argument of "" that I've supplied should be taken as "a string of the entitites to encode", since it is neither omitted nor undef. However, HTML::Element seems to be taking "" to be the same as an omitted or undefined argument here. An argument of "\0" does suppress the encoding feature.