diff --git a/app/views/api/index.html.erb b/app/views/api/index.html.erb index a690c64..a6b9768 100644 --- a/app/views/api/index.html.erb +++ b/app/views/api/index.html.erb @@ -1,20 +1,20 @@

EndPoints

- <%= s_('api-playground|Try the %s') % link_to('API Playground', {:controller => 'api', :action => 'playground'}) %> + <%= s_('api-playground|Try the %s').html_safe % link_to('API Playground', {:controller => 'api', :action => 'playground'}) %>
<%= endpoints.map do |endpoint| app = endpoint.options[:app].to_s unless app.blank? - content_tag(:h2, app.split('::').last.to_s, title: app) + + content_tag(:h2, app.split('::').last.to_s, title: app).html_safe + (content_tag :ul do endpoint.routes.map do |route| content_tag :li do content_tag(:strong, route.route_method) + ' ' + - route.route_path.gsub(':version', content_tag(:b, route.route_version)) + route.route_path.gsub(':version', content_tag(:b, route.route_version)).html_safe end - end.join "\n" + end.safe_join "\n" end) end -end.join "\n" %> +end.safe_join "\n" %> diff --git a/app/views/shared/not_found.html.erb b/app/views/shared/not_found.html.erb index 9c58798..23b8ca2 100644 --- a/app/views/shared/not_found.html.erb +++ b/app/views/shared/not_found.html.erb @@ -1,5 +1,5 @@
-

<%= _('There is no such page: %s') % (content_tag('tt', @path)) %>

+

<%= _('There is no such page: %s').html_safe % (content_tag('tt', @path)) %>

<%= _('You may have clicked an expired link or mistyped the address.') %> <%= _('If you clicked a link that was in another site, or was given to you by someone else, it would be nice if you tell them that their link is not valid anymore.') %> -- libgit2 0.21.2