Use html_safe instead of raw. #3945
This commit is contained in:
parent
7307fa48e7
commit
48c45ba9a8
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
|||
= link_to raw(line_number_left), "##{line_code_left}", id: line_code_left
|
||||
- if @comments_allowed && can?(current_user, :create_note, @project)
|
||||
= link_to_new_diff_note(line_code_left, 'old')
|
||||
%td.line_content{class: "parallel noteable_line #{type_left} #{line_code_left}", "line_code" => line_code_left }= raw(line_content_left)
|
||||
%td.line_content{class: "parallel noteable_line #{type_left} #{line_code_left}", "line_code" => line_code_left }= line_content_left.html_safe
|
||||
|
||||
- if type_right == 'new'
|
||||
- new_line_class = 'new'
|
||||
|
@ -33,7 +33,7 @@
|
|||
= link_to raw(line_number_right), "##{new_line_code}", id: new_line_code
|
||||
- if @comments_allowed && can?(current_user, :create_note, @project)
|
||||
= link_to_new_diff_note(line_code_right, 'new')
|
||||
%td.line_content.parallel{class: "noteable_line #{new_line_class} #{new_line_code}", "line_code" => new_line_code}= raw(line_content_right)
|
||||
%td.line_content.parallel{class: "noteable_line #{new_line_class} #{new_line_code}", "line_code" => new_line_code}= line_content_right.html_safe
|
||||
|
||||
- if @reply_allowed
|
||||
- comments_left, comments_right = organize_comments(type_left, type_right, line_code_left, line_code_right)
|
||||
|
|
Loading…
Reference in a new issue