How Does WordPress Create Permalinks?

I wanted to call the same function as WordPress uses for turning a post title into a page slug for some customizations to the Shopp Plugin I’ve been making for my client SoupCycle. It took a little digging but I found it in:


It’s function

function sanitize_title_with_dashes($title) { ... }

I couldn’t find this posted on the net anywhere so I posted it here in case others were looking for it.