Download .zip |
Info | Example | Demos | View files (7) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-17 (16 hours ago) | Not enough user ratings | Total: 67 This week: 10 | All time: 447 This week: 6 |
Version | License | JavaScript version | Categories | |||
text-to-slug 1.11 | MIT/X Consortium ... | 4 | jQuery, Text processing, Forms |
Description | Author | |||
This is jQuery plugin can change a text string to make slug to use in URL. Innovation Award
|
Text2Slug is a neat and small jquery plugin for making slugable input in a form > Text2Slug Plugin is less than ~1kb * Text2Slug generate slug from unicode string, URL-friendly slugify with multiple languages support.
> Requires : JQuery * First download package text-to-slug.js or text-to-slug.min.js * Then put Jquery and text-to-slug.js file into your html Head * use plug in * Also You can see examples in examples folder > Add jquery and text-to-slug slug js to document >
> >
<script src="src/jquery.min.js"></script>
<script src="src/text-to-slug.js"></script>
<input type="text" id="slug_tmp2" name="slug_tmp2" >
<script>
$(function(){
$('#slug_tmp2').text2slug({input_name:'slug2'});
});
</script>
Afshin Akhgar , afshin@akhgar.net > akhgar.net
The source files are distributed under the The MIT License (MIT).
Slug is the part of a URL that is often used to include in the pages' URLs the respective titles to make it easy for users to learn what the pages are about looking just at their URLs.
Not all characters can be included in URLs. For instance spaces and other characters need to be encoded in a special way, so they are not easily readable by the users.
This object can take a text of a title and create the slug by replacing characters that would need to be encoded, by using dashes.
Manuel Lemos
Files | / | src |
File | Role | Description |
---|---|---|
jquery.min.js | Class | Class source |
styles.css | Data | Auxiliary data |
text2slug.js | Class | Class source |
text2slug.min.js | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.