This will convert Bulletin Board Code into readable HTML, good for comments, forums, etc.
This blacklist lookup function is a modification of this snippet. The difference is, that it returns if it suspects an ip is a spammer. If 50% or more of the lookups think your a spammer, the function returns true otherwise false.