encode_entities(encode_entities($text, q{<>&"'}), '^\0-\377')
Update: Oops, changed 0 to \0.
In reply to Re: use HTML::Entities to encode only characters >= 256?
by ikegami
in thread use HTML::Entities to encode only characters >= 256?
by pc88mxer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |