in reply to Re: HTML::Entities encode_entities for perlmonks [ ]
in thread HTML::Entities encode_entities for perlmonks [ ]

Thanks, that looks almost complete, I think cntrl is missing I tried using [:cntrl:] but that didn't work -- OTOH using  my $unsafe_chars = q{\x00-\x1f<&>'"[]\200-\377}; worked

Replies are listed 'Best First'.
Re^3: HTML::Entities encode_entities for perlmonks [ ]
by kcott (Archbishop) on Jun 15, 2013 at 11:08 UTC

    Fair comment. I hadn't previously used this module so, as indicated, I was working from the doco: I missed the "control chars" part of:

    The default set of characters to encode are control chars, high-bit chars, and the <, &, >, ' and " characters.

    Also, note the update regarding the utf8 pragma.

    -- Ken