···11module Sinatra
22 module HTMLEscapeHelper
33 def h(text)
44- Rack::Utils.escape_html(text)
44+ Rack::Utils.escape_html(text).to_s.gsub("/", "/")
55 end
66 end
77
+1-1
lib/sinatra_more/markup_plugin/format_helpers.rb
···27272828 # Returns escaped text to protect against malicious content
2929 def escape_html(text)
3030- Rack::Utils.escape_html(text)
3030+ Rack::Utils.escape_html(text).to_s.gsub("/", "/")
3131 end
3232 alias h escape_html
3333 alias sanitize_html escape_html