diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-21 13:05:46 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-21 13:05:46 -0400 |
| commit | 746ca86ca146dbc815959c90c6f60df05e6354a9 (patch) | |
| tree | be1f8c83f478cca2e2a87a5ee595d48a9dbe398c | |
| parent | 8d24ad2a810f7cf32ef1ef2337a9d1db9d98e8da (diff) | |
Escape stringified JSON for use in HTML attrv0.1.2
| -rw-r--r-- | themes/okadmin/templates/index.liquid | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/okadmin/templates/index.liquid b/themes/okadmin/templates/index.liquid index d25100f..e9ad538 100644 --- a/themes/okadmin/templates/index.liquid +++ b/themes/okadmin/templates/index.liquid @@ -17,7 +17,8 @@ {% for data in resource.data %} <li> <a href="{{resource.type}}/{{data.id}}/">{{data.title}}</a> - <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" value='{{data | stringify}}'> + <input class="resource-input" type="hidden" name="{{resource.type}}[{{forloop.index0}}]" + value='{{data | stringify | escape_once}}'> </li> {% endfor %} </ol> |
