diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-01-18 19:13:56 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-01-18 19:13:56 +0000 |
commit | 319419e12c33f90fe84ab6a8535ec3fcbe1ff3ae (patch) | |
tree | f11b82181ca6df219e7000d8f6ee16dc77d6d51b | |
parent | c78a590228480d444f2f6c2d99a7281be150c51a (diff) |
Don't double-HTML escape 'Pick a category' text.
-rw-r--r-- | templates/web/default/report/new/category.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/web/default/report/new/category.html b/templates/web/default/report/new/category.html index 8bff539c4..f2ef529f2 100644 --- a/templates/web/default/report/new/category.html +++ b/templates/web/default/report/new/category.html @@ -7,7 +7,8 @@ <select name='category' id='form_category'[% ' onchange="form_category_onchange()"' IF category_extras.size %]> [% FOREACH cat_op IN category_options %] [% cat_op_lc = cat_op | lower %] - <option value='[% cat_op | html %]'[% ' selected' IF report.category == cat_op || category == cat_op_lc %]>[% cat_op | html %]</option> + <option value='[% cat_op | html %]'[% ' selected' IF report.category == cat_op || category == cat_op_lc -%] + >[% IF loop.first %][% cat_op %][% ELSE %][% cat_op | html %][% END %]</option> [% END %] </select> [% END %] |