We have beaten this horse too much; let’s put it out of its misery definitively, in a effective way. A way that protects everyone and the children from harm: non-meta edits and deletion.
This answer is the prime exhibit that whatever your go to solution for answers that expose users to self harming practices, is not enough. People manage to still do stuff that only expose themselves and their users/clients to harm.
If it's stupid, but it works, it's not stupid, except when it is
Answers that expose yourself to security vulnerabilities, but "solve" your issue, is just the regex joke all over again: solving an issue while creating other. Except that unlike regex, the harm is not only to yourself, but to others that depend on your service.
Stack Overflow is a learning resource, and it should teach well
The community already considers several books as stuff that you shouldn't read, and that's usually enough to dissuade since there's another step: buying the book itself. But if there's an easily copy-paste answer and is free, demonizing the content is not enough, especially when the user wants to solve the problem fast. Since we are considered a learning resource, we should hold ourself to the same standards. If readers will use us as a learning resource, it should be the best learning resource. A learning resource that could cause vulnerabilities is not a good resource.
Too many words
Basically, we should start removing, if there's a better answer, or editing, if preventing the issue is trivial, answers that cause security issues. Let’s set the example with this answer by removing it from the site, since it has gathered at least 200 upvotes since we tried anything with it.