alt text for hoot images
Ted Unangst tedu@tedunangst.com
Sat, 11 Feb 2023 19:46:29 -0500
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
hoot.go
→
hoot.go
@@ -57,7 +57,7 @@ alt := htfilter.GetAttr(node, "alt")
if htfilter.HasClass(node, "Emoji") && alt != "" { return alt } - return fmt.Sprintf(" <img src='%s'>", htfilter.GetAttr(node, "src")) + return fmt.Sprintf(" <img src='%s' alt='%s'>", htfilter.GetAttr(node, "src"), alt) } var buf strings.Builder