Do not use default escaping on address display
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 23 Nov 2021 22:53:21 +0000 (11:53 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 23 Nov 2021 22:53:21 +0000 (11:53 +1300)
This has vcard html in it and so breaks if default escaping is enabled

templates/CRM/Contact/Page/Inline/Address.tpl

index 8861f0ba0f3c5c593d5a2ec838e38fd62d7820d5..453d330884f9e6ef5908d0965707670ee8c7507c 100644 (file)
@@ -38,7 +38,7 @@
           {if !empty($sharedAddresses.$locationIndex.shared_address_display.name)}
             <strong>{ts 1=$sharedAddresses.$locationIndex.shared_address_display.name}Address belongs to %1{/ts}</strong><br />
           {/if}
-          {$add.display|nl2br}
+          {$add.display|smarty:nodefaults|purify|nl2br}
         </div>
       </div>