escape
This commit is contained in:
@@ -36,7 +36,7 @@ func (p *PriceIsWrong) apply(e priceiswrong.Event) error {
|
|||||||
case *priceiswrong.Guess:
|
case *priceiswrong.Guess:
|
||||||
for i := range p.Contestants {
|
for i := range p.Contestants {
|
||||||
if p.Contestants[i].ID == e.ID {
|
if p.Contestants[i].ID == e.ID {
|
||||||
p.Contestants[i].Guess = e.Guess
|
p.Contestants[i].Guess = html.EscapeString(e.Guess)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user