Skip to content

Commit

Permalink
脚注文にHTMLタグやHTMLエンティティが存在した場合、タグが壊れる不具合修正
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.magicvox.net/var/svn/mt-plugins/__misc@195 adbff654-c4ea-448a-8ae3-cad037306009
  • Loading branch information
piroli committed Dec 1, 2011
1 parent 5e8f522 commit b180fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Footnote.pl
Expand Up @@ -7,7 +7,7 @@ package MT::Plugin::OMV::Footnote;

use vars qw( $MYNAME $VERSION );
$MYNAME = (split /::/, __PACKAGE__)[-1];
$VERSION = '0.00_01';
$VERSION = '0.01';

use base qw( MT::Plugin );
my $plugin = __PACKAGE__->new ({
Expand Down Expand Up @@ -48,7 +48,7 @@ package MT::Plugin::OMV::Footnote;
my $index = scalar @$footnotes;
sprintf $format->[0],
sprintf qq{<a title="%s" name="$refer" href="#$anchor">$format->[1]</a>},
MT::Util::encode_html($_[0]), $index,$index, $index;
MT::Util::encode_html (MT::Util::remove_html($_[0])), $index,$index, $index;
}->($2)!ge;
$ctx->stash ($MYNAME. qq{::footnotes}, $footnotes);
$text;
Expand Down

0 comments on commit b180fdd

Please sign in to comment.