Skip Menu |

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

Report information
The Basics
Id: 50170
Status: resolved
Priority: 0/
Queue: HTML-Parser

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

Bug Information
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>