need to close a tag for missing img
This commit is contained in:
parent
eb34f8f555
commit
f2bf894513
2
fun.go
2
fun.go
|
@ -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" src="<a href="%s">%s<a>">`, alt, src, src))
|
||||
return string(templates.Sprintf(`<img alt="%s" src="<a href="%s">%s</a>">`, alt, src, src))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue