(gnus-html-wash-images): Use xml-substitute-special on images alt-text
authorJulien Danjou <julien@danjou.info>
Wed, 22 Sep 2010 08:12:57 +0000 (10:12 +0200)
committerJulien Danjou <julien@danjou.info>
Wed, 22 Sep 2010 08:12:57 +0000 (10:12 +0200)
Signed-off-by: Julien Danjou <julien@danjou.info>
lisp/ChangeLog
lisp/gnus-html.el

index 45b3b24..485bfe0 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-22  Julien Danjou  <julien@danjou.info>
+
+       * gnus-html.el (gnus-html-wash-images): Use xml-substitute-special on
+       images alt-text.
+
 2010-09-22  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mailcap.el (mailcap-parse-mailcap, mailcap-parse-mimetypes)
 2010-09-22  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mailcap.el (mailcap-parse-mailcap, mailcap-parse-mimetypes)
index 34dbb4d..7f2cea0 100644 (file)
@@ -35,6 +35,7 @@
 (require 'mm-url)
 (require 'url)
 (require 'url-cache)
 (require 'mm-url)
 (require 'url)
 (require 'url-cache)
+(require 'xml)
 
 (defcustom gnus-html-image-cache-ttl (days-to-time 7)
   "Time in seconds used to cache the image on disk."
 
 (defcustom gnus-html-image-cache-ttl (days-to-time 7)
   "Time in seconds used to cache the image on disk."
@@ -175,7 +176,7 @@ fit these criteria."
          ;; Normal, external URL.
           (let ((alt-text (when (string-match "\\(alt\\|title\\)=\"\\([^\"]+\\)"
                                               parameters)
          ;; Normal, external URL.
           (let ((alt-text (when (string-match "\\(alt\\|title\\)=\"\\([^\"]+\\)"
                                               parameters)
-                            (match-string 2 parameters))))
+                            (xml-substitute-special (match-string 2 parameters)))))
             (if (gnus-html-image-url-blocked-p
                  url
                  (if (buffer-live-p gnus-summary-buffer)
             (if (gnus-html-image-url-blocked-p
                  url
                  (if (buffer-live-p gnus-summary-buffer)