mirror of
https://git.zx2c4.com/cgit
synced 2025-08-03 09:34:43 +02:00
email-gravatar: fix html syntax issues
* make ampersand a html entity * add required alt attribute * add required img end tag
This commit is contained in:
parent
46176eca7f
commit
1167dbb95b
2 changed files with 2 additions and 2 deletions
|
@ -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&d=retro' style='height:10pt;width:10pt' alt='Gravatar' /> " + text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue