diff --git a/app/views/content/form/field_types/_tags.html.erb b/app/views/content/form/field_types/_tags.html.erb index 3ca43108..a2878ad3 100644 --- a/app/views/content/form/field_types/_tags.html.erb +++ b/app/views/content/form/field_types/_tags.html.erb @@ -60,7 +60,7 @@ }, data: [ <% page.page_tags.pluck(:tag).each do |tag| %> - {tag: '<%= tag %>'}, + {tag: "<%= tag.gsub('"', '\"').html_safe %>"}, <% end %> ], onChipAdd: update_hidden_page_tag_value,