Browse Source

Merge pull request #1026 from TomAdam/pr-raw-help

Field help text escaping change
Thomas 12 years ago
parent
commit
60c2e450e5

+ 2 - 2
Resources/views/CRUD/base_standard_edit_field.html.twig

@@ -23,7 +23,7 @@ file that was distributed with this source code.
         {% block field %}{{ form_widget(field_element) }}{% endblock %}
 
         {% if field_description.help %}
-            <span class="help-inline">{% block help %}{{ field_description.help }}{% endblock %}</span>
+            <span class="help-inline">{% block help %}{{ field_description.help|raw }}{% endblock %}</span>
         {% endif %}
 
         <div class="sonata-ba-field-error-messages">
@@ -31,4 +31,4 @@ file that was distributed with this source code.
         </div>
 
     </div>
-</div>
+</div>

+ 2 - 2
Resources/views/Form/form_admin_fields.html.twig

@@ -125,7 +125,7 @@ file that was distributed with this source code.
                 {% endif %}
 
                 {% if sonata_admin.field_description.help %}
-                    <span class="help-block sonata-ba-field-help">{{ sonata_admin.field_description.help }}</span>
+                    <span class="help-block sonata-ba-field-help">{{ sonata_admin.field_description.help|raw }}</span>
                 {% endif %}
             </div>
         </div>
@@ -195,4 +195,4 @@ file that was distributed with this source code.
             {% endif %}
         </div>
     {% endspaceless %}
-{% endblock %}
+{% endblock %}