Help for this page

Select Code to Download


  1. or download this
    sub unescape_entities {
        my $html = shift;
    ...
        $tree->delete;
        return @c;
    }
    
  2. or download this
    use Sub::ScopeFinalizer qw( scope_finalizer );
    
    ...
        $tree->parse( decode_entities( $html->as_XML ) );
        return map "$_", $tmp->findnodes( '//body/*' );
    }