Bulk reqs: add line breaks
Scripts longer than 1 line are completely unreadable without line breaks
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
module BulkUpdateRequestsHelper
|
||||
def script_with_line_breaks(script)
|
||||
escaped_script = script.gsub(/&/, "&").gsub(/</, "<").gsub(/>/, ">")
|
||||
escaped_script.gsub(/\n/m, "<br>").html_safe
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user