- 🇫🇷France O'Briat Nantes
IMHO none of the tokens should be escaped.
The problem occurs in
\Drupal\purge_purger_http\Plugin\Purge\Purger\HttpPurgerBase::getOptions
, this function should use\Drupal\Core\Utility\Token::replacePlain
instead of\Drupal\Core\Utility\Token::replace
.I stumble on the same issue when trying to provide a new token (see related issue), in my patch I propose a "safe way" by switching to
replacePlain
only if$this->settings->body_content_type === 'application/json'
.