mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 14:49:32 +00:00
Escape HTML in mention and URL display text
This commit is contained in:
parent
3bc78801b3
commit
06c52473ab
1 changed files with 2 additions and 2 deletions
|
|
@ -233,9 +233,9 @@ proc replacedWith(runes: seq[Rune]; repls: openArray[ReplaceSlice];
|
|||
symbol = $runes[rep.slice.a]
|
||||
result.add a(symbol & name, href = "/search?f=tweets&q=%23" & name)
|
||||
of rkMention:
|
||||
result.add a($runes[rep.slice], href = rep.url, title = rep.display)
|
||||
result.add a($runes[rep.slice], href = rep.url, title = escape(rep.display))
|
||||
of rkUrl:
|
||||
result.add a(rep.display, href = rep.url)
|
||||
result.add a(escape(rep.display), href = rep.url)
|
||||
of rkRemove:
|
||||
discard
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue