How do you remove invalid characters when creating a friendly url (ie how do you create a slug)? The Products table is just an example and the actual string will not necessarily come from our database so I need a way to do this automatically.
For example on this site the url is generated on the fly based on the question asked. How do they automatically remove non-safe characters if those non-safe characters are used in the question itself?