Remove any tags from notes field.
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 9 Aug 2018 12:18:25 +0000 (08:18 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 9 Aug 2018 12:18:25 +0000 (08:18 -0400)
html marked shouldn't be in the plain textarea.

views/admin/contacts/edit.html

index 6b57e43..fd0de8f 100644 (file)
                         <table class="glm-admin-table glm-admin-table-inner">
                             <tr>
                                 <td {if $contactInfo.fieldFail.notes}class="glm-form-bad-input"{/if}>
-                                    <textarea name="notes" value="{$contactInfo.fieldData.notes}" class="" placeholder="Test">{if $contactInfo.fieldData.notes}{$contactInfo.fieldData.notes}{/if}</textarea>
+                                    <textarea name="notes" value="{$contactInfo.fieldData.notes}" class="" placeholder="Test">{if $contactInfo.fieldData.notes}{$contactInfo.fieldData.notes|strip_tags}{/if}</textarea>
                                     {if $contactInfo.fieldFail.notes}<p>{$contactInfo.fieldFail.notes}</p>{/if}
                                 </td>
                             </tr>