X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8c31a01efa05c4fb821e1364b8792b89852619a3..38550f06408b1c05369e6bf130a2bc933e0ed57a:/IkiWiki/Plugin/teximg.pm diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm index 1993249eb..957f71a6e 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{}
-			.(exists $params{alt} ? $params{alt} : uri_escape($code))
+			.(exists $params->{alt} ? $params->{alt} : encode_entities($code))
 			.qq{}; } else {