Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

java script converting text to slug

function convertToSlug(Text)
{
    return Text
        .toLowerCase()
        .replace(/ /g,'-')
        .replace(/[^w-]+/g,'')
        ;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #script #converting #text #slug
ADD COMMENT
Topic
Name
1+7 =