# File lib/erubis/engine/optimized.rb, line 29 def escape_text(text) text.gsub(/['\\]/, '\\\\\&') # "'" => "\\'", '\\' => '\\\\' end