in reply to Re^2: HTML::Entities encode_entities for perlmonks [ ]in thread HTML::Entities encode_entities for perlmonks [ ]
use HTML::Entities ;
my $string = '[< smarto >]';
my $unsafe_chars = '';
my $encoded = encode_entities($string)
Why not just encode the other characters manually?
:) Q: How do I fix this here knife? A: Why not use another knife?
Always on Perls where it is no longer experimental
Sometimes, such as when I deem the syntax to be clearer with it than without
Only if the existing code base uses it or a standards doc mandates it
Never heard of it
I'm still supporting 5.6.0, you insensitive clod!
Results (101 votes). Check out past polls.