add class for mentions so they're not treated like links
This commit is contained in:
parent
28a39e7f23
commit
f5709a9e84
1 changed files with 1 additions and 1 deletions
2
fun.go
2
fun.go
|
|
@ -185,7 +185,7 @@ func obfusbreak(s string) string {
|
||||||
if where == "" {
|
if where == "" {
|
||||||
return m
|
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))
|
html.EscapeString(m))
|
||||||
})
|
})
|
||||||
return s
|
return s
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue