Skip to content

Commit

Permalink
Disable html purifier cache
Browse files Browse the repository at this point in the history
  • Loading branch information
pa-cholek committed Jun 24, 2022
1 parent 835573e commit e0fec6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/EmailChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private static function renderMjml(string $mjml): string

private static function fixHtml(string $html): string
{
$config = HTMLPurifier_Config::createDefault();
$config = HTMLPurifier_Config::createDefault()->set('Cache.DefinitionImpl', null);
$purifier = new HTMLPurifier($config);
return $purifier->purify($html);
}
Expand Down

0 comments on commit e0fec6e

Please sign in to comment.