Skip to content

Commit

Permalink
do not replace HTML special characters for non-HTML output
Browse files Browse the repository at this point in the history
fixes #2051
  • Loading branch information
C-Otto authored and ZeiP committed Jul 19, 2020
1 parent b57a62b commit 7aacc1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/todos/create.js.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
function clear_form(next_steps) {
$('#todo-form-new-action').clearForm();
$('#todo-form-new-action').clearDeps();
TracksForm.set_context_name('<%=escape_javascript @initial_context_name%>');
TracksForm.set_project_name_and_default_project_name('<%=escape_javascript @initial_project_name%>');
TracksForm.set_tag_list_and_default_tag_list('<%=escape_javascript @initial_tags%>');
TracksForm.set_context_name('<%=escape_javascript raw @initial_context_name%>');
TracksForm.set_project_name_and_default_project_name('<%= escape_javascript raw @initial_project_name %>');
TracksForm.set_tag_list_and_default_tag_list('<%=escape_javascript raw @initial_tags%>');
$('#todo-form-new-action input:text:first').focus();
$('#new_todo_starred_link .todo_star').removeClass('starred');
$('#new_todo_starred').val('false');
Expand Down

0 comments on commit 7aacc1a

Please sign in to comment.