nl_tokens: * @method parameterize () @returns String @short Replaces special characters in a string so that it may be used as part of a pretty URL . @example
pl_tokens: function ( separator ) { var str = this ; if ( separator === undefined ) separator = '-' ; if ( str . normalize ) { str = str . normalize ( ) ; } str = str . replace ( / [^a-z0-9\-_]+ / gi , separator ) if ( separator ) { str = str . <mask> ( new regexp ( '^{sep}+|{sep}+$|({sep}){sep}+' . assign ( { 'sep' : escapeRegExp ( separator ) } ) , 'g' ) , '$1' ) ; } return encodeURI ( str . toLowerCase ( ) ) ; }