That’s rather smart.

I’d very much appreciate the code as, immediately after posting, I always get two comments containing random words and links to gambling-type websites.

Is it simple enough that one only reasonably familiar with PHP could edit questions and answers?