dev/core#3001 escape single quotes when rendering tokens in html format
authorEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Dec 2021 22:18:41 +0000 (11:18 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 20 Dec 2021 22:18:41 +0000 (11:18 +1300)
Civi/Token/TokenRow.php

index 29ad5a25592ff6b948df7b37316739ff7612fef3..67010083918f5b7b22c1aed21a6889149f1a7199 100644 (file)
@@ -280,7 +280,7 @@ class TokenRow {
                 $htmlTokens[$entity][$field] = \CRM_Utils_String::purifyHTML($value);
               }
               else {
-                $htmlTokens[$entity][$field] = is_object($value) ? $value : htmlentities($value);
+                $htmlTokens[$entity][$field] = is_object($value) ? $value : htmlentities($value, ENT_QUOTES);
               }
             }
           }