# File lib/rubypants.rb, line 373 def stupefy_entities(str) new_str = str.dup { :en_dash => '-', :em_dash => '--', :single_left_quote => "'", :single_right_quote => "'", :double_left_quote => '"', :double_right_quote => '"', :ellipsis => '...' }.each do |k,v| new_str.gsub!(/#{entity(k)}/, v) end new_str end