Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -l
    
    ...
    my $string = "<[Here's my \"2¢\" worth]>";
    print $string;
    print encode_entities($string, $unsafe_chars);
    
  2. or download this
    $ pm_html_ent_plus_brackets.pl
    <[Here's my "2¢" worth]>
    &lt;&#91;Here&#39;s my &quot;2&cent;&quot; worth&#93;&gt;
    
  3. or download this
    use utf8;
    binmode(STDOUT => ':utf8');