What is ■■■■■ and how does it work?

If you search online for “profanity word block list” you will find a lot of lists, eg this one https://github.com/RobertJGabriel/Google-profanity-words/blob/master/list.txt