Our great sponsors
- SonarLint - Clean code begins in your IDE with SonarLint
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
- InfluxDB - Access the most powerful time series database as a service
-
-
bleach
Bleach is an allowed-list-based HTML sanitizing library that escapes or strips markup and attributes
I don't know a golang library for it but https://github.com/mozilla/bleach is a python lib that escapes all the nasty javascript inputs.
-
SonarLint
Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.
-
golint is deprecated, and it’s no longer required to comment every exported variable/function/struct, etc.
-
unless this is an exercise in "how to make my own markdown processor" I'd suggest using proven https://github.com/russross/blackfriday
-
And if this is an exercise into that you can use a Markdown spec like CommonMark which is the spec Reddit and a variety of other sites use.
-
goldmark
:trophy: A markdown parser written in Go. Easy to extend, standard(CommonMark) compliant, well structured.
Yuin/Goldmark is the new standard Go Markdown processor. Black Friday is older.