Skip to content

echo example: handle received messages as text, not HTML#563

Merged
elithrar merged 1 commit intomasterfrom
unknown repository
Mar 19, 2020
Merged

echo example: handle received messages as text, not HTML#563
elithrar merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Dec 20, 2019

The print function adds text as innerHTML, but the text is not HTML. Use textContent instead.

@elithrar elithrar merged commit 81cef7d into gorilla:master Mar 19, 2020
@elithrar
Copy link
Contributor

Merged - thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants