Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

slug javascript

var slug = "CodePadding Rahman     ( Mizan ) 12456 <> title";
slug = slug.toLowerCase().replace(/[^w-]+/g, '-');
console.log(slug); // codepadding-rahman-mizan-12456-title
 
PREVIOUS NEXT
Tagged: #slug #javascript
ADD COMMENT
Topic
Name
6+1 =