From 7aacc1a919a7e20f4392f25ef6f10b544f7fb9dd Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sat, 18 Mar 2017 20:42:04 +0100 Subject: [PATCH] do not replace HTML special characters for non-HTML output fixes #2051 --- app/views/todos/create.js.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/todos/create.js.erb b/app/views/todos/create.js.erb index 4e36a99d..3566af25 100644 --- a/app/views/todos/create.js.erb +++ b/app/views/todos/create.js.erb @@ -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');