Skip to content

Commit

Permalink
small optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 26, 2012
1 parent 5649450 commit a5050ff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Mojo/Util.pm
Expand Up @@ -32,13 +32,9 @@ my %ENTITIES;
}

# Reverse entities for html_escape (without "apos")
$ENTITIES{'#39;'} = "\x{0027}";
my %REVERSE;
my %REVERSE = ("\x{0027}" => '#39;');
$REVERSE{$ENTITIES{$_}} //= $_ for sort keys %ENTITIES;

# Fix "apos"
$ENTITIES{'apos;'} = "\x{0027}";

# Encode cache
my %ENCODE;

Expand Down

0 comments on commit a5050ff

Please sign in to comment.