ppant has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks,
I am using HTML::Entities module to encode some special chars. Here is my code:
As output is in hex num of the char. I want output in form of HTML numeric decimal value of the chars like € ™ © ®use HTML::Entities qw(encode_entities_numeric); my $str = "some special chars like € ™ © ®"; encode_entities_numeric($str); print $str; Output: € ™ © ®
Is there a way to do this in encode_entities_numeric()
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Covert to decimal HTML code in encode_entities_numeric
by neilwatson (Priest) on Dec 02, 2015 at 13:20 UTC | |
by ppant (Acolyte) on Dec 03, 2015 at 03:33 UTC | |
|
Re: Covert to decimal HTML code in encode_entities_numeric
by toolic (Bishop) on Dec 02, 2015 at 13:17 UTC | |
by ppant (Acolyte) on Dec 03, 2015 at 03:32 UTC |