What's the name of the russian sounding song that someone injected? I've been searching it for ages!
Show HN: MapChat – A simple location based chat in 300 lines of code
41–50 of 122 posts
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#42Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#43Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#44Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#45What's the name of the russian sounding song that someone injected? I've been searching it for ages!
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#46This is super, will fork it into a private chat with bunch of my friends.
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#47Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#48Earlier quoted context omitted.
I think it is now somewhat disabled. you just need to refresh the page.
This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)
var entityMap = {
"&": "&",
"": ">",
'"': '"',
"'": ''',
"/": '/'
};
function escapeHtml(string) {
return String(string).replace(/[&"'\/]/g, function (s) {
return entityMap[s];
});
}
also document.createTextNode will tell the browser not to render the children as html, whereas appending a dom element and innerHTML will.[1] I'm just assuming that behavior is correct in all browsers though.[0]https://github.com/janl/mustache.js/blob/master/mustache.js#...
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#49Earlier quoted context omitted.
I think it is now somewhat disabled. you just need to refresh the page.
This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)
Re: Show HN: MapChat – A simple location based chat in 300 lines of code
#50Very nice! Lot of people having fun in there right now, which is a clear sign you did something right.