+2010-09-22 Julien Danjou <julien@danjou.info>
+
+ * gnus-html.el (gnus-html-wash-images): Use xml-substitute-special on
+ images alt-text.
+ (gnus-html-put-image): Put alt-text as help-echo.
+
2010-09-22 Katsumi Yamaoka <yamaoka@jpl.org>
* mailcap.el (mailcap-parse-mailcap, mailcap-parse-mimetypes)
(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."
;; 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)
(let ((image (gnus-html-rescale-image image data size)))
(delete-region start end)
(gnus-put-image image alt-text 'external)
+ (gnus-put-text-property start (point) 'help-echo alt-text)
(gnus-overlay-put (gnus-make-overlay start (point)) 'local-map
gnus-html-displayed-image-map)
(gnus-put-text-property start (point) 'gnus-alt-text alt-text)