Show HN: Guesbook for my static site using GitHub Gist and Netlify Functions
sunnygolovine.com
sunnygolovine.com
I'd also like to note that doing purification on the client on submit [0] isn't wise - anyone can just skip purification and post something malicious directly to the netlify function. If you absolutely have to sanitisation on the client - at least do it on render instead.
[0] https://github.com/sgolovine/sunnygolovine.com/blob/master/s...
Currently working on fixing the issues.
However while you can submit HTML directly it is displayed as text on the client anyways. So I am wondering why they even bother to "sanitize" it. It just munges the comments for no reason.
Btw, the social links at the top of your website don’t work ;)
Repo is here...
https://github.com/sgolovine/sunnygolovine.com
Deploying of lambda functions from the repo through netlify is pretty neat have a look in the functions folder.