Use html format for hook rows
authorEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Sep 2021 05:16:16 +0000 (17:16 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Tue, 14 Sep 2021 05:16:16 +0000 (17:16 +1200)
Civi/Token/TokenCompatSubscriber.php

index f4745ec7cd0f6dfb39a05b0f9d1f514a96b87cb7..76197149b644804c3d66f83a105bec7dc3996ffe 100644 (file)
@@ -288,7 +288,7 @@ class TokenCompatSubscriber implements EventSubscriberInterface {
       );
       foreach ($hookTokens as $hookToken) {
         foreach ($messageTokens[$hookToken] as $tokenName) {
-          $row->tokens($hookToken, $tokenName, $contactArray[$row->context['contactId']]["{$hookToken}.{$tokenName}"] ?? '');
+          $row->format('text/html')->tokens($hookToken, $tokenName, $contactArray[$row->context['contactId']]["{$hookToken}.{$tokenName}"] ?? '');
         }
       }
     }