use warnings; use strict; my $str = "some special chars like € ™ © ®"; $str =~ s/&#x([[:xdigit:]]+)/'&#' . hex($1)/eg; print "$str\n"; __END__ some special chars like € ™ © ®
In reply to Re: Covert to decimal HTML code in encode_entities_numeric
by toolic
in thread Covert to decimal HTML code in encode_entities_numeric
by ppant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |