[GITEA] Fix label render containing invalid HTML

- The label HTML contained a quote that wasn't being closed.

(cherry picked from commit e2bc2c9a1f)
This commit is contained in:
Gusted 2023-10-22 00:34:57 +02:00
parent 8089d44936
commit c42b53c6b0
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -179,7 +179,7 @@ func RenderLabel(ctx context.Context, label *issues_model.Label) template.HTML {
s := fmt.Sprintf("<span class='ui label scope-parent' title='%s'>"+
"<div class='ui label scope-left' style='color: %s !important; background-color: %s !important'>%s</div>"+
"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important''>%s</div>"+
"<div class='ui label scope-right' style='color: %s !important; background-color: %s !important'>%s</div>"+
"</span>",
description,
textColor, scopeColor, scopeText,