jabowery has asked for the wisdom of the Perl Monks concerning the following question:
$html=~s/(.)/ord($1)>255?encode_entities($1):$1/ge;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Encode only wide char entities?
by Your Mother (Archbishop) on Mar 09, 2012 at 20:59 UTC | |
|
Re: Encode only wide char entities?
by ikegami (Patriarch) on Mar 09, 2012 at 22:31 UTC | |
by jabowery (Beadle) on Mar 09, 2012 at 22:46 UTC | |
by ikegami (Patriarch) on Mar 09, 2012 at 23:20 UTC | |
by LanX (Saint) on Mar 09, 2012 at 22:55 UTC | |
by ikegami (Patriarch) on Mar 09, 2012 at 23:22 UTC |