Is there a method or API that WordPress uses to encode the URLs similar to how it generates part of the URL when using the title in the URL? I am writing a plugin that generates URLs and would like to use the same method as everything else is.
For instance, I type "This is my blog post" in the title and "this-is-my-blog-post" gets generated.
