vendor/plugins/permalink_fu/lib/permalink_fu.rb
# This method does the actual permalink escaping.
This method does the actual permalink escaping.
This method does the actual permalink escaping .
def escape(str)
      s = ((translation_to && translation_from) ? Iconv.iconv(translation_to, translation_from, str) : str).to_s
      s.gsub!(/[^\w -]+/, '') 
      s.strip!                
      s.downcase!             
      s.gsub!(/[ -]+/, '-')    separate by single dashes
      s
    end
def escape ( str ) s = ( ( translation_to && translation_from ) ? Iconv . iconv ( translation_to , translation_from , str ) : str ) . to_s s . gsub! ( / [^ \w  -]+ / , '' ) s . strip! s . downcase! s . gsub! ( / [ -]+ / , '-' ) s end
This method does the actual permalink escaping.
This method does the actual permalink escaping .
# strip unwanted characters # ohh la la # # separate by single dashes
str