Skip to content

Commit

Permalink
Mark description as html_safe
Browse files Browse the repository at this point in the history
If this isn't marked as html_safe, some of the descriptions look
bad because it shows the HTML code instead of its intent.

Signed-off-by: David A. Wheeler <[email protected]>
  • Loading branch information
david-a-wheeler committed Jan 31, 2024
1 parent c333e25 commit 2b0ebc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/projects/show_markdown.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
- *<%= t("headings.#{minor}") %>*
<%- minor_info.each do |criterion, criterion_info| -%>
- <%= criterion_to_checkbox(@project["#{criterion}_status".to_sym])
%> <%= t("criteria.#{criteria_level}.#{criterion}.description")
%> <%=
t("criteria.#{criteria_level}.#{criterion}.description").html_safe
%><%=
# Only add a "details" tag with details if there *are* any details
# "Details" and the other strings here are from trusted sources.
Expand Down

0 comments on commit 2b0ebc1

Please sign in to comment.