This doc seems a bit superfluous. Just "This function sanitizes tags to be mostly HTML-safe" probably suffices, since the code itself already makes it obvious how it does that (code comments that leave the code to say what it does and comment the need for it or idea behind it are the best code comments)