Skip to content

Commit

Permalink
OTWO-7214 Dont mark Link titles as html safe (#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sig authored Apr 4, 2024
1 parent ec65b0a commit 6258f79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/edits_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def edit_title_class(edit)
end

def edit_show_subject(edit)
"#{edit_subject(edit)} #{edit_enlistment_branch_info(edit)}".html_safe
raw_string = "#{edit_subject(edit)} #{edit_enlistment_branch_info(edit)}"
edit.target.is_a?(Link) ? raw_string : raw_string.html_safe
end

def get_edit_summary(edit)
Expand Down

0 comments on commit 6258f79

Please sign in to comment.