diff --git a/lib/erubis/helpers/rails_helper.rb b/lib/erubis/helpers/rails_helper.rb index 6e724d9..0ae9ec2 100644 --- a/lib/erubis/helpers/rails_helper.rb +++ b/lib/erubis/helpers/rails_helper.rb @@ -340,7 +340,7 @@ def create_template_source(extension, template, render_symbol, locals) module ERB::Util # :nodoc: ESCAPE_TABLE = { '&'=>'&', '<'=>'<', '>'=>'>', '"'=>'"', "'"=>''', } def h(value) - value.to_s.gsub(/[&<>"]/) {|s| ESCAPE_TABLE[s] } + value.to_s.gsub(/[&<>"']/) {|s| ESCAPE_TABLE[s] } end module_function :h end