This queue is for tickets about the HTML-Parser CPAN distribution.

Report information
The Basics
Id:
50170
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
bobtfish [...] bobtfish.net
Cc:
AdminCc:

BugTracker
Severity:
Important
Broken in:
3.60
Fixed in:
(no value)



Subject: HTML::Entities cannot encode / as an entity.
bottarga ~ $ perl -MHTML::Entities -e'print HTML::Entities::encode_entities("24/7", "/")' Unmatched [ in regex; marked by <-- HERE in m/([ <-- HERE / at (eval 1) line 1. while trying to turn range: "/" into code: sub {$_[0] =~ s/([/])/$char2entity{$1} || num_entity($1)/ge; } at /home/t0m/perl5/lib/perl5/x86_64-linux-gnu-thread-multi/HTML/Entities.pm line 462. bottarga ~ $ perl -MHTML::Entities -e'print HTML::Entities::encode_entities("24/7", "\\/")' 24&#47;7 I don't think I should need to escape the list of entities I pass in myself..
Fixed in <http://github.com/gisle/html- parser/commit/6e91cf4085db4f8518d7979aef4ae9b22551ad39>


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.