funnyfish
0
Q:

java script converting text to slug

function convertToSlug(Text)
{
    return Text
        .toLowerCase()
        .replace(/ /g,'-')
        .replace(/[^\w-]+/g,'')
        ;
}
2

New to Communities?

Join the community