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/7
I don't think I should need to escape the list of entities I pass in
myself..