aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-23 21:22:44 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-08-23 21:22:44 +0000
commit015ce28d7202abe928457f7b3e777a671ec0412d (patch)
tree38afced6a06420e1d914732c780e0eb5bd2871e8 /IkiWiki/Plugin
parent8c31a01efa05c4fb821e1364b8792b89852619a3 (diff)
downloadikiwiki-015ce28d7202abe928457f7b3e777a671ec0412d.tar
ikiwiki-015ce28d7202abe928457f7b3e777a671ec0412d.tar.gz
fix encoding html entities in alt tag
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/teximg.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm
index 1993249eb..2eb13c86c 100644
--- a/IkiWiki/Plugin/teximg.pm
+++ b/IkiWiki/Plugin/teximg.pm
@@ -7,7 +7,7 @@ use warnings;
use strict;
use Digest::MD5 qw(md5_hex);
use File::Temp qw(tempdir);
-use URI::Escape qw(uri_escape);
+use HTML::Entities;
use IkiWiki 2.00;
sub import { #{{{
@@ -90,7 +90,7 @@ sub create ($$$) { #{{{
if (-e "$config{destdir}/$imglink" ||
gen_image($code, $height, $digest, $teximgdir)) {
return qq{<img src="$imgurl" alt="}
- .(exists $params{alt} ? $params{alt} : uri_escape($code))
+ .(exists $params{alt} ? $params{alt} : encode_entities($code))
.qq{" class="teximg" />};
}
else {