# File lib/erubis/enhancer.rb, line 663
    def _add_text_to_str(str, text)
      return if !text || text.empty?
      text.gsub!(/['\#\\]/, '\\\\\&')
      str << text
    end