Skip to content

Commit

Permalink
Encoded index entries appropriately.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromatic committed Mar 24, 2012
1 parent ca8474e commit 18bf6ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Pod/PseudoPod/DOM/Index.pm
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,14 @@ use strict;
use warnings;

use Moose;
use HTML::Entities;

extends 'Pod::PseudoPod::DOM::Index::EntryList';

sub emit
{
my $self = shift;
my $key = $self->key;
my $key = encode_entities( $self->key );

return qq|<h2>$key</h2>\n\n| . $self->emit_contents;
}
Expand Down

0 comments on commit 18bf6ba

Please sign in to comment.