diff options
Diffstat (limited to 'lib/erubis/enhancer.rb')
-rw-r--r-- | lib/erubis/enhancer.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/erubis/enhancer.rb b/lib/erubis/enhancer.rb index 361a582..2fa2862 100644 --- a/lib/erubis/enhancer.rb +++ b/lib/erubis/enhancer.rb @@ -706,8 +706,7 @@ module Erubis def _add_text_to_str(str, text) return if !text || text.empty? - text.gsub!(/[`\#\\]/, '\\\\\&') - str << text + str << text.gsub(/[`\#\\]/, '\\\\\&') end def add_expr_escaped(str, code) |