We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 019490c commit 6c26a89Copy full SHA for 6c26a89
frameworks/Ruby/rage-sequel/app/views/fortunes.html.erb
@@ -5,7 +5,7 @@
5
<table>
6
<tr><th>id</th><th>message</th></tr>
7
<% records.each do |record| %>
8
- <tr><td><%= record.id %></td><td><%= CGI.escape_html(record.message) %></td></tr>
+ <tr><td><%= record.id %></td><td><%= Rack::Utils.escape_html(record.message) %></td></tr>
9
<% end %>
10
</table>
11
</body>
frameworks/Ruby/rage/app/views/fortunes.html.erb
- <tr><td><%= record[:id] %></td><td><%= CGI.escape_html(record[:message]) %></td></tr>
+ <tr><td><%= record[:id] %></td><td><%= Rack::Utils.escape_html(record[:message]) %></td></tr>
0 commit comments