export raw string (no html conversion) and replace " by "" - refs #401

This commit is contained in:
Marc Ducobu
2015-02-18 12:41:57 +01:00
parent 47a9a29236
commit b40a1595c1
3 changed files with 13 additions and 6 deletions

View File

@@ -2,9 +2,9 @@
{%- for choice in choices -%}
{% if choice['slug'] in selected %}
{%- if choice['slug'] is not same as('_other') -%}
{{ choice['name']|localize_translatable_string }}
{{ choice['name']|localize_translatable_string|replace({'"':'""'})|raw }}
{%- else -%}
{{ choice['name'] }}
{{ choice['name']|replace({'"':'""'})|raw }}
{%- endif -%}
{% endif %}
{%- endfor -%}

View File

@@ -0,0 +1 @@
{% if text is not empty %}{{ text|replace({'"':'""'})|raw }}{% else %}{{ 'None'|trans }}{% endif %}