properly escape crazy characters in tags

This commit is contained in:
drusepth 2021-12-07 22:23:31 -08:00
parent 6e2c96bc2a
commit 075300028f

View File

@ -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,