You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
< is replaced by < and other special characters are output as they are.
What did you expect to see?
I would expect < to be output in the same way as other special characters (>"'& etc.).
This may seem like normal behavior. I was unsure whether to report it as an issue, but I would be happy to receive an answer if it is indeed normal.
The text was updated successfully, but these errors were encountered:
This works as intended, it's escaping characters to avoid XSS vulnerabilities and other tags injections. < is a special character in html and < is it's escape sequence that makes the browser understand you really meant < as text
Go version
go version go1.21.1 darwin/arm64
Output of
go env
in your module/workspace:What did you do?
https://go.dev/play/p/W18cUafkh69
What did you see happen?
<
is replaced by<
and other special characters are output as they are.What did you expect to see?
I would expect
<
to be output in the same way as other special characters (>"'& etc.).This may seem like normal behavior. I was unsure whether to report it as an issue, but I would be happy to receive an answer if it is indeed normal.
The text was updated successfully, but these errors were encountered: