mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
export raw string (no html conversion) and replace " by "" - refs #401
This commit is contained in:
@@ -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 -%}
|
||||
|
1
Resources/views/CustomFieldsRendering/text.csv.twig
Normal file
1
Resources/views/CustomFieldsRendering/text.csv.twig
Normal file
@@ -0,0 +1 @@
|
||||
{% if text is not empty %}{{ text|replace({'"':'""'})|raw }}{% else %}{{ 'None'|trans }}{% endif %}
|
Reference in New Issue
Block a user