<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: jQuery Slug Plugin</title>
	<atom:link href="http://www.thewebsitetailor.com/jquery-slug-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebsitetailor.com</link>
	<description>Perry Trinier</description>
	<lastBuildDate>Tue, 31 Aug 2010 20:58:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Julian</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-241</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Mon, 19 Apr 2010 00:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-241</guid>
		<description>Hi Perry,

I think your plugin is nice and very useful. For your info, I wrote an article in my blog mentioning this plugin and a tweak I did to use special chars like accents in Spanish.

Maybe you are interested, and maybe you&#039;d like to support something like that in your future versions (as @Enrico requested):

http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Perry,</p>
<p>I think your plugin is nice and very useful. For your info, I wrote an article in my blog mentioning this plugin and a tweak I did to use special chars like accents in Spanish.</p>
<p>Maybe you are interested, and maybe you&#8217;d like to support something like that in your future versions (as @Enrico requested):</p>
<p><a href="http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery" rel="nofollow">http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery</a></p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-229</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Tue, 23 Mar 2010 16:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-229</guid>
		<description>what about accénts and umlauts (ü)?</description>
		<content:encoded><![CDATA[<p>what about accénts and umlauts (ü)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Caseiro</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-38</link>
		<dc:creator>Leo Caseiro</dc:creator>
		<pubDate>Wed, 07 Oct 2009 17:34:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-38</guid>
		<description>Hi Perry,


Unfortunately did not see the plugin Veena.

But Thanks for help me.</description>
		<content:encoded><![CDATA[<p>Hi Perry,</p>
<p>Unfortunately did not see the plugin Veena.</p>
<p>But Thanks for help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BandonRandon</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-36</link>
		<dc:creator>BandonRandon</dc:creator>
		<pubDate>Fri, 25 Sep 2009 03:29:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-36</guid>
		<description>Hey Perry, 

Thanks for posting the link to the Google Code link. I was hoping there was an update. I also took some of the suggestions leo (above) made above and took the library to re-write the makeSlug(); function in a way that I believe incorporates most of his fixes. 

Here is the &quot;new&quot; function:
	
	makeSlug = function() {
			var slug = jQuery.trim($this.val()) // Trimming recommended by Brooke Dukes - http://www.thewebsitetailor.com/2008/04/jquery-slug-plugin/comment-page-1/#comment-23
                        .replace(/\s+/g,&#039;-&#039;).replace(/[^a-zA-Z0-9\-]/g,&#039;-&#039;).toLowerCase() // See http://www.djangosnippets.org/snippets/1488/ 
                        .replace(/\-{2,}/g,&#039;-&#039;) // If we end up with any &#039;multiple hyphens&#039;, replace with just one. Temporary bugfix for input &#039;this &amp; that&#039;=&gt;&#039;this--that&#039;
						.replace(/(^[-])&#124;([-]$)/g,&#039;&#039;); //recommended by Leo Caseiro to fix starting and ending on a hyphen http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-31
			$(&#039;input.&#039; + settings.slug).val(slug);
			$(&#039;span.&#039; + settings.slug).text(slug);

		}
		
Thanks,
Brooke Dukes</description>
		<content:encoded><![CDATA[<p>Hey Perry, </p>
<p>Thanks for posting the link to the Google Code link. I was hoping there was an update. I also took some of the suggestions leo (above) made above and took the library to re-write the makeSlug(); function in a way that I believe incorporates most of his fixes. </p>
<p>Here is the &#8220;new&#8221; function:</p>
<p>	makeSlug = function() {<br />
			var slug = jQuery.trim($this.val()) // Trimming recommended by Brooke Dukes &#8211; <a href="http://www.thewebsitetailor.com/2008/04/jquery-slug-plugin/comment-page-1/#comment-23" rel="nofollow">http://www.thewebsitetailor.com/2008/04/jquery-slug-plugin/comment-page-1/#comment-23</a><br />
                        .replace(/\s+/g,&#8217;-').replace(/[^a-zA-Z0-9\-]/g,&#8217;-').toLowerCase() // See <a href="http://www.djangosnippets.org/snippets/1488/" rel="nofollow">http://www.djangosnippets.org/snippets/1488/</a><br />
                        .replace(/\-{2,}/g,&#8217;-') // If we end up with any &#8216;multiple hyphens&#8217;, replace with just one. Temporary bugfix for input &#8216;this &amp; that&#8217;=&gt;&#8217;this&#8211;that&#8217;<br />
						.replace(/(^[-])|([-]$)/g,&#8221;); //recommended by Leo Caseiro to fix starting and ending on a hyphen <a href="http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-31" rel="nofollow">http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-31</a><br />
			$(&#8216;input.&#8217; + settings.slug).val(slug);<br />
			$(&#8216;span.&#8217; + settings.slug).text(slug);</p>
<p>		}</p>
<p>Thanks,<br />
Brooke Dukes</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perry</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-33</link>
		<dc:creator>Perry</dc:creator>
		<pubDate>Sat, 19 Sep 2009 02:46:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-33</guid>
		<description>Hi Leo, 

It&#039;s true that the first version of this plugin had many bugs, I&#039;ve actually fixed them along the way but haven&#039;t bothered to upload the changes yet. The most recent version &lt;a href=&quot;http://code.google.com/p/jquery-slug-plugin/&quot; rel=&quot;nofollow&quot;&gt;is now on Google Code&lt;/a&gt;.

I&#039;m sorry that I haven&#039;t added any support yet for internationalization, but a commenter named Veena did borrow some code from Django to handle &quot;special characters&quot; - http://dvanula.cz/jquery.slug2.js .</description>
		<content:encoded><![CDATA[<p>Hi Leo, </p>
<p>It&#8217;s true that the first version of this plugin had many bugs, I&#8217;ve actually fixed them along the way but haven&#8217;t bothered to upload the changes yet. The most recent version <a href="http://code.google.com/p/jquery-slug-plugin/" rel="nofollow">is now on Google Code</a>.</p>
<p>I&#8217;m sorry that I haven&#8217;t added any support yet for internationalization, but a commenter named Veena did borrow some code from Django to handle &#8220;special characters&#8221; &#8211; <a href="http://dvanula.cz/jquery.slug2.js" rel="nofollow">http://dvanula.cz/jquery.slug2.js</a> .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Caseiro</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-32</link>
		<dc:creator>Leo Caseiro</dc:creator>
		<pubDate>Fri, 18 Sep 2009 14:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-32</guid>
		<description>Sorry, but this Plugin not work to my Language (PT-BR)

So, I need to create a new plugin for Convert a string to slug.</description>
		<content:encoded><![CDATA[<p>Sorry, but this Plugin not work to my Language (PT-BR)</p>
<p>So, I need to create a new plugin for Convert a string to slug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo Caseiro</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-31</link>
		<dc:creator>Leo Caseiro</dc:creator>
		<pubDate>Wed, 16 Sep 2009 13:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-31</guid>
		<description>Sorry, but this plugin have somes bugs:


Bug 1:
When your string to start on space
Title: &quot; The test String&quot;
Slug: -the-test-string

Bug 2:
When your string to finish on space
Title: &quot;The test String &quot;
Slug: the-test-string-

-
Solution1 [http://docs.jquery.com/Utilities/jQuery.trim]
The $.trim() function on jQuery
Ex: slugcontent = $.trim(slugcontent);


------
Bug 3: 
When your string has 2 special caracters or more glued and without space:
Title: &quot;The test!!String&quot;
Slug: -the-teststring

-
Solution 2
Replace this RegExp (/[^a-zA-Z0-9\-]/g,&#039;&#039;) for (/[^a-zA-Z0-9\-]/g,&#039;-&#039;)
Ex: var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#039;-&#039;);

------
Bug 4: 
When your string has 2 hifens or more:
Title: &quot;-The test  String&quot;
Slug: -the-test--string

-
Solution 3
Ex: finishedslug = finishedslug.replace(/[-]{2,}/g,&#039;-&#039;);


------
Bug 5: 
When your string to start on hyphen
Title: &quot;The test String-&quot;
Slug: the-test-string-

Bug 6:
When your string to finish on hyphen
Title: The test String-
Slug: the-test-string-

-
Solution 4
RegExp: /(^[-])&#124;([-]$)/
finishedslug = finishedslug.replace(/(^[-])&#124;([-]$)/g,&#039;&#039;);


------

All script with my solutions:
makeSlug = function() {
			var slugcontent = jQuery.trim($this.val());
			var slugcontent_hyphens = slugcontent.replace(/\s/g,&#039;-&#039;);
			var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#039;-&#039;);
			finishedslug = finishedslug.replace(/[-]{2,}/g,&#039;-&#039;);
			finishedslug = finishedslug.replace(/(^[-])&#124;([-]$)/g,&#039;&#039;);
			jQuery(&#039;input.&#039; + settings.slug).val(finishedslug.toLowerCase());
			jQuery(&#039;span.&#039; + settings.slug).text(finishedslug.toLowerCase());

}



/* Im from Brazil and my English not is good! */</description>
		<content:encoded><![CDATA[<p>Sorry, but this plugin have somes bugs:</p>
<p>Bug 1:<br />
When your string to start on space<br />
Title: &#8221; The test String&#8221;<br />
Slug: -the-test-string</p>
<p>Bug 2:<br />
When your string to finish on space<br />
Title: &#8220;The test String &#8221;<br />
Slug: the-test-string-</p>
<p>-<br />
Solution1 [http://docs.jquery.com/Utilities/jQuery.trim]<br />
The $.trim() function on jQuery<br />
Ex: slugcontent = $.trim(slugcontent);</p>
<p>&#8212;&#8212;<br />
Bug 3:<br />
When your string has 2 special caracters or more glued and without space:<br />
Title: &#8220;The test!!String&#8221;<br />
Slug: -the-teststring</p>
<p>-<br />
Solution 2<br />
Replace this RegExp (/[^a-zA-Z0-9\-]/g,&#8221;) for (/[^a-zA-Z0-9\-]/g,&#8217;-')<br />
Ex: var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#8217;-');</p>
<p>&#8212;&#8212;<br />
Bug 4:<br />
When your string has 2 hifens or more:<br />
Title: &#8220;-The test  String&#8221;<br />
Slug: -the-test&#8211;string</p>
<p>-<br />
Solution 3<br />
Ex: finishedslug = finishedslug.replace(/[-]{2,}/g,&#8217;-');</p>
<p>&#8212;&#8212;<br />
Bug 5:<br />
When your string to start on hyphen<br />
Title: &#8220;The test String-&#8221;<br />
Slug: the-test-string-</p>
<p>Bug 6:<br />
When your string to finish on hyphen<br />
Title: The test String-<br />
Slug: the-test-string-</p>
<p>-<br />
Solution 4<br />
RegExp: /(^[-])|([-]$)/<br />
finishedslug = finishedslug.replace(/(^[-])|([-]$)/g,&#8221;);</p>
<p>&#8212;&#8212;</p>
<p>All script with my solutions:<br />
makeSlug = function() {<br />
			var slugcontent = jQuery.trim($this.val());<br />
			var slugcontent_hyphens = slugcontent.replace(/\s/g,&#8217;-');<br />
			var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#8217;-');<br />
			finishedslug = finishedslug.replace(/[-]{2,}/g,&#8217;-');<br />
			finishedslug = finishedslug.replace(/(^[-])|([-]$)/g,&#8221;);<br />
			jQuery(&#8216;input.&#8217; + settings.slug).val(finishedslug.toLowerCase());<br />
			jQuery(&#8216;span.&#8217; + settings.slug).text(finishedslug.toLowerCase());</p>
<p>}</p>
<p>/* Im from Brazil and my English not is good! */</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viddo</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-30</link>
		<dc:creator>Viddo</dc:creator>
		<pubDate>Sat, 12 Sep 2009 16:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-30</guid>
		<description>Hey, neat idea! Found this because I was looking for this functionality. However it does not fit my case without modification why I would like to contribute with some extra options. Why not put it on Github or similar for everyone to improve it?</description>
		<content:encoded><![CDATA[<p>Hey, neat idea! Found this because I was looking for this functionality. However it does not fit my case without modification why I would like to contribute with some extra options. Why not put it on Github or similar for everyone to improve it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pixel Blog &#187; Mootools et jQuery plugins</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-27</link>
		<dc:creator>Pixel Blog &#187; Mootools et jQuery plugins</dc:creator>
		<pubDate>Wed, 22 Jul 2009 20:34:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-27</guid>
		<description>[...] jQuery Slug Plugin Voilà un plugin qui permet de nettoyer une chaine de caractères pour pouvoir ensuite l&#8217;utiliser dans une URL (Slug) [...]</description>
		<content:encoded><![CDATA[<p>[...] jQuery Slug Plugin Voilà un plugin qui permet de nettoyer une chaine de caractères pour pouvoir ensuite l&#8217;utiliser dans une URL (Slug) [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
