Quick little ditty to convert posts to bbcode for sockets, but I think there has to be a better way to do this