aboutsummaryrefslogtreecommitdiffstats
path: root/filters/email-gravatar.py
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2014-01-14 12:01:58 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2014-01-14 13:55:44 +0100
commit1167dbb95bcd6bb2916312a7900e360c101e7eca (patch)
treec7d544f39259a6679727773e4b335b9548783518 /filters/email-gravatar.py
parent46176eca7f130a59813d160415a5ead58133f128 (diff)
email-gravatar: fix html syntax issues
* make ampersand a html entity * add required alt attribute * add required img end tag
Diffstat (limited to 'filters/email-gravatar.py')
-rwxr-xr-xfilters/email-gravatar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/filters/email-gravatar.py b/filters/email-gravatar.py
index 5d08ea8..97f21cf 100755
--- a/filters/email-gravatar.py
+++ b/filters/email-gravatar.py
@@ -36,4 +36,4 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
md5 = hashlib.md5(email.encode()).hexdigest()
text = sys.stdin.read().strip()
-print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&d=retro' style='height:10pt;width:10pt'> " + text)
+print("<img src='//www.gravatar.com/avatar/" + md5 + "?s=13&amp;d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " + text)