Live data from Hacker News

Show HN: MapChat – A simple location based chat in 300 lines of code

idoco.github.io

31–40 of 122 posts

Re: Show HN: MapChat – A simple location based chat in 300 lines of code

#31
post #28
post #26

Earlier 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 :)

I see an iframe on the page. Right now.

Re: Show HN: MapChat – A simple location based chat in 300 lines of code

#33
post #28
post #26

Earlier 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 :)

This is a naive solution. Pull in some library.

Re: Show HN: MapChat – A simple location based chat in 300 lines of code

#37
post #28
post #26

Earlier 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 :)

Make your regexs global, i.e. .replace(/https://github.com/idoco/map-chat/pull/1

Re: Show HN: MapChat – A simple location based chat in 300 lines of code

#38
post #28
post #26

Earlier 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 div = document.createElement('div');

div.textContent = msg;

msg.text = div.innerHTML;

This should remove all HTML/CSS/Script.

Re: Show HN: MapChat – A simple location based chat in 300 lines of code

#40
post #31
post #28

Earlier quoted context omitted.

This is what I did for now msg.text = msg.text.replace('>','') .replace(' I will think of a more clever solution next week :)

I see an iframe on the page. Right now.

suddenly someone injected www.leekspin.com while I'm viewing the map.
Post reply on HN