{{$NEXT}}
- Merge several CSS bugfixes and improvements from Mojolicious 6.31 and 6.32.
- Merge wrap and wrap_content bugfixes from Mojolicious 6.34.
+ - Fix small html_unescape bug in DOM::Tiny::Entities
0.002 2015-11-09 19:28:42 EST
- Support perl 5.8 (mst)
"Dan Book <dbook@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.041, CPAN::Meta::Converter version 2.150005",
+ "generated_by" : "Dist::Zilla version 5.042, CPAN::Meta::Converter version 2.150005",
"license" : [
"artistic_2"
],
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.041.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.042.
use strict;
use warnings;
sub html_unescape {
my $str = shift;
- $str =~ s/&(?:\#((?:\d{1,7}|x[0-9a-fA-F]{1,6}));|(\w+;))/_decode($1, $2)/ge;
+ $str =~ s/&(?:\#((?:[0-9]{1,7}|x[0-9a-fA-F]{1,6}));|(\w+;))/_decode($1, $2)/ge;
return $str;
}
# html_unescape (nothing to unescape)
is html_unescape('foobar'), 'foobar', 'right HTML unescaped result';
+# html_unescape (bengal numbers with nothing to unescape)
+is html_unescape('&#০৩৯;&#x০৩৯;'), '&#০৩৯;&#x০৩৯;', 'no changes';
+
# html_unescape (UTF-8)
is html_unescape(decode 'UTF-8', 'foo<baz>&"Œ&Foo;'),
"foo<baz>&\"\x{152}&Foo;", 'right HTML unescaped result';