friendlyURL(title)

Last updated November 30, 2008

author

Description:
This function was developed to create SEO friendly urls from article titles (similar to digg and cnn). It removes all non alpha characters and replaces them with a hyphen. It also removes trailing hyphens, apostrophes, etc.

Return Values:
Returns a string.

Example:

<cfsavecontent variable="myTitle">
This wouldn't be a very SEO friendly URL, would it?
</cfsavecontent>
<cfoutput>
#friendlyUrl(myTitle)#
</cfoutput>