Skip to content

Commit

Permalink
Tidy up excluded json
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Sep 7, 2018
1 parent 903186c commit 1933ffc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion public/views/request_list/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<script>
EXCLUDED_MESSAGE = JSON.parse('<%= @excluded.html_safe %>');
EXCLUDED_MESSAGE = JSON.parse('<%= @excluded.gsub("'", "\\\\'").html_safe %>'
.replace(/\n/g, " ")
.replace(/\r/g, " ")
.replace(/\t/g, " "));
</script>

<div class="row">
Expand Down

0 comments on commit 1933ffc

Please sign in to comment.