method

escape

escape(string)
private

No documentation available.

# File lib/rdoc/generator/pot/po_entry.rb, line 119
  def escape string
    string.gsub(/["\\\t\n]/) do |special_character|
      case special_character
      when "\t"
        "\\t"
      when "\n"
        "\\n"
      else
        "\\#{special_character}"
      end
    end
  end