Slackbot
09/28/2023, 5:22 PMJason Bosco
09/28/2023, 5:38 PMOliver Jensen
09/28/2023, 5:41 PMOliver Jensen
09/28/2023, 5:44 PMOliver Jensen
09/28/2023, 5:44 PMknow that <script>alert(1)</script> is an xss payload
not like this:
did you know that is an xss payloadOliver Jensen
09/28/2023, 5:47 PMHighlightStartTag and HighlightEndTag, HTML-escaping the result, then swapping in the hightlight HTML tags for the unlikely-to-appear strings that we used. I just assumed there would be a simpler way, since typesense-go defaults to using HTML tags directly as these values, and I was having a hard time reconciling that with needing to do thisJason Bosco
09/28/2023, 5:48 PMJason Bosco
09/28/2023, 5:48 PMmainly by using some unlikely-to-appear string as HighlightStartTag and HighlightEndTag, HTML-escaping the result, then swapping in the hightlight HTML tagsYeah, that's the other thing I was going to suggest
Jason Bosco
09/28/2023, 5:48 PMJason Bosco
09/28/2023, 5:49 PMOliver Jensen
09/28/2023, 5:51 PMOliver Jensen
09/28/2023, 5:51 PMJason Bosco
09/28/2023, 5:54 PMOliver Jensen
09/28/2023, 6:05 PM