Skip to content

Commit

Permalink
bug #2427 Bug fix, add |raw filter for help message (razbounak)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.x branch.

Discussion
----------

Bug fix, add |raw filter for help message

<!--

BUGS must go to '1.x' branch.
NEW FEATURES must go to 'master' branch.

If the NEW FEATURE is complex, open an issue first so we can discuss about it.

Note: all your contributions adhere implicitly to the MIT license

-->

Commits
-------

1f8c53f Bug fix, add |raw filter for help message
  • Loading branch information
javiereguiluz committed Nov 21, 2018
2 parents b673dc3 + 1f8c53f commit a8ebc0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/form/bootstrap_3_layout.html.twig
Expand Up @@ -562,7 +562,7 @@

<div class="box-body {% if group_config.collapsible|default(false) %}collapse {% if group_config.expanded|default(false) %}in{% endif %}{% endif %}" id="box-body-{{ group_name }}">
{% if group_config.help|default(false) %}
<p class="help-block">{{ group_config.help|trans(domain = _translation_domain)|nl2br|raw }}</p>
<p class="help-block">{{ group_config.help|trans(domain = _translation_domain)|raw|nl2br }}</p>
{% endif %}

<div class="row">
Expand Down Expand Up @@ -622,7 +622,7 @@
{% endif %}

{% if easyadmin.field.help|default(false) %}
<p class="help-block">{{ easyadmin.field.help|trans(domain = _translation_domain)|nl2br|raw }}</p>
<p class="help-block">{{ easyadmin.field.help|trans(domain = _translation_domain)|raw|nl2br }}</p>
{% endif %}
</div>
{% endblock easyadmin_section_row %}

0 comments on commit a8ebc0a

Please sign in to comment.