diff --git a/modules/smart_date_recur/smart_date_recur.tokens.inc b/modules/smart_date_recur/smart_date_recur.tokens.inc index fb54562ce8a3ee0c1cceb4d18b23ea3ba7d5d2f3..f3a0a12cd902f1da8393adab108eaf91534faa26 100644 --- a/modules/smart_date_recur/smart_date_recur.tokens.inc +++ b/modules/smart_date_recur/smart_date_recur.tokens.inc @@ -127,7 +127,7 @@ function smart_date_recur_tokens($type, $tokens, array $data, array $options, Bu $rrules_processed[] = $rrid; } // @todo More structure or markup around mutiple values? - $output = \Drupal::service('renderer')->render($rule_text); + $output = \Drupal::service('renderer')->renderPlain($rule_text); $replacements[$original] = $output; continue; } // End rule_text token processing. @@ -207,7 +207,7 @@ function smart_date_recur_tokens($type, $tokens, array $data, array $options, Bu } } - $output = \Drupal::service('renderer')->render($values); + $output = \Drupal::service('renderer')->renderPlain($values); $replacements[$original] = $output; } return $replacements;