General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Lawrence D’Oliveiro
Fireship
comments
Comments by "Lawrence D’Oliveiro" (@lawrencedoliveiro9104) on "WebSockets in 100 Seconds u0026 Beyond with Socket.io" video.
I wonder why a function like this isn’t built into JavaScript: function escape_html(s) { return s .replaceAll("&", "&") /* always do first, rest can be in any order */ .replaceAll("\"", """) .replaceAll("<", "<") .replaceAll(">", ">") .replaceAll("\t", " ") .replaceAll("\n", " ") } /*escape_html*/
1
To me, the app includes both client and server.
1
I think the browser sends you the same cookies as for the page itself. So if your Web connection is already authenticated, you can depend on that.
1