Hacker GitHub

← All repos

microcosm-cc/bluemonday

View on GitHub ↗ ★ 3,729 Go

bluemonday: a fast golang HTML sanitizer (inspired by the OWASP Java HTML Sanitizer) to scrub user generated content of XSS

18 mentions on Hacker News by 5 people: 3 stories, 15 comments · first 2013-11-20 · latest 2024-07-14

Mentions per year 18 mentions · busiest year 2014 (3)
20082026
  1. I store the raw input in my database, but run it through bluemonday before rendering it. Simples. https://github.com/microcosm-cc/bluemonday
  2. …happy to hand over the reigns to a group of engineers that can focus on OSS. I am the author of https://github.com/microcosm-cc/bluemonday but being a maintainer is a journey, you make a tool for yourself, you realise others will benefit…
  3. …which you use when you have user generated / untrusted input that you need to display as HTML. https://github.com/microcosm-cc/bluemonday For me the library has been good enough for my own use for a very very long time. I mostly neglect it…
  4. My thoughts as a maintainer of a HTML sanitizer in Go https://github.com/microcosm-cc/bluemonday which is also available to Python via https://github.com/ColdHeat/pybluemonday 1. Sanitizing is not difficult, defining the policy/config is.…
    comment by buro9 · 2021-05-06 · in HTML Sanitizer API
  5. …someone else but also looking for any feedback. Especially about how the bindings were written. [1] https://github.com/microcosm-cc/bluemonday [2] https://github.com/ColdHeat/pybluemonday#performance
    comment by ColdHeat · 2020-12-14 · in Show HN: Fast HTML Sanitization in Python
  6. Out of curiosity, I fed the attacks to the Go bluemonday library https://github.com/microcosm-cc/bluemonday It seemed to have no issues whatsoever (click Run): https://play.golang.org/p/oBYXo9MDusr https://play.golang.org/p/KzD1Ug-KKiB
  7. …And then other miscellaneous things: The Go HTML sanitizer for user generated content https://github.com/microcosm-cc/bluemonday Our legal policies for forums on this platform (expensive to produce, but perfectly fitting a forum platform…
  8. This didn't work so well for one of my projects: https://github.com/microcosm-cc/bluemonday I chose to look at this one as the README is quite descriptive and offers examples, and it is reasonably well structured. It's a Go HTML sanitizer.…
  9. …web coding practices for Go I always look up an area that I know best: sanitization. I wrote https://github.com/microcosm-cc/bluemonday which is a pure Go HTML sanitizer inspired by https://github.com/owasp/java-html-sanitizer . The key…
  10. …Whitelist only trusted schemes, do not wait to blacklist untrusted. I wrote the Go HTML sanitizer: https://github.com/microcosm-cc/bluemonday and have a rule for user generated (untrusted) content that basically does whitelist just the…
  11. …not give any examples. In the aversion to use any non-standard package it also does not mention https://github.com/microcosm-cc/bluemonday or anything similar (I am the author of bluemonday - a HTML sanitizer in the same vein as the OWASP…
    comment by buro9 · 2016-03-28 · in Building Web Apps in Go
  12. …for user content, this is passed through a Go library I wrote to strip out iframes, embeds, etc... https://github.com/microcosm-cc/bluemonday and then as a post-processing task once I trust the content, I find the links that I know how to…
  13. …text input into HTML, though there is a missing dependency here which is Bluemonday. Bluemonday ( https://github.com/microcosm-cc/bluemonday ) is a HTML sanitizer and ensures that XSS supplied via the Markdown box is stripped before…
    comment by buro9 · 2014-10-13 · in Building Web Apps with Go
  14. …the policy, simplistic URL checking, etc). I ended up writing my own package to help fill the gap https://github.com/microcosm-cc/bluemonday You can tell I'm dealing with user generated/supplied content. Each domain still feels almost…
  15. Thanks to a fellow HN reader, we now have a head start on trying to create a HTML sanitizer. https://github.com/microcosm-cc/bluemonday Feel free to use it and help out. Initial work was all done by Matt Jibson as part of his Google Reader…
    comment by buro9 · 2013-11-20 · in On Go’s Web Application Ecosystem