Correct me if I'm missing something, but shouldn't there be a ";" at the end of the HTML entity? Also, as a general style issue, instead of print + sprintf I would just use a single printf:
printf '&#%03d;', translate{ $_ } for split '', $email;
the lowliest monk
In reply to Re: html2code.pl
by tlm
in thread html2code.pl
by tcf03
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |