need to close a tag for missing img

This commit is contained in:
Ted Unangst 2020-01-25 18:08:13 -05:00
parent eb34f8f555
commit f2bf894513
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -173,7 +173,7 @@ func replaceimgsand(zap map[string]bool, absolute bool) func(node *html.Node) st
} }
return string(templates.Sprintf(`<img alt="%s" title="%s" src="%s/d/%s">`, alt, alt, base, d.XID)) return string(templates.Sprintf(`<img alt="%s" title="%s" src="%s/d/%s">`, alt, alt, base, d.XID))
} }
return string(templates.Sprintf(`&lt;img alt="%s" src="<a href="%s">%s<a>"&gt;`, alt, src, src)) return string(templates.Sprintf(`&lt;img alt="%s" src="<a href="%s">%s</a>"&gt;`, alt, src, src))
} }
} }