From 015ce28d7202abe928457f7b3e777a671ec0412d Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 23 Aug 2007 21:22:44 +0000 Subject: fix encoding html entities in alt tag --- IkiWiki/Plugin/teximg.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'IkiWiki/Plugin') 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{}
-			.(exists $params{alt} ? $params{alt} : uri_escape($code))
+			.(exists $params{alt} ? $params{alt} : encode_entities($code))
 			.qq{}; } else { -- cgit v1.2.3