add class for mentions so they're not treated like links

This commit is contained in:
Ted Unangst 2019-04-16 15:16:44 -04:00
parent 28a39e7f23
commit f5709a9e84
1 changed files with 1 additions and 1 deletions

2
fun.go
View File

@ -185,7 +185,7 @@ func obfusbreak(s string) string {
if where == "" {
return m
}
return fmt.Sprintf(`<a href="%s">%s</a>`, html.EscapeString(where),
return fmt.Sprintf(`<a class="mention" href="%s">%s</a>`, html.EscapeString(where),
html.EscapeString(m))
})
return s