Help for this page

Select Code to Download


  1. or download this
    # Make the opposite mapping
    while (my($entity, $char) = each(%entity2char)) {
        $entity =~ s/;\z//;
        $char2entity{$char} = "&$entity;";
    }
    
  2. or download this
    package HTML::Entities;
    $char2entity{'.25'} = '¼';
    ...
    
    package main;
    ...