diff --git a/app/Library/Purifier.php b/app/Library/Purifier.php index e73fb979..f2e571af 100644 --- a/app/Library/Purifier.php +++ b/app/Library/Purifier.php @@ -23,6 +23,7 @@ class Purifier */ protected $options = [ 'CSS.AllowedProperties' => 'color,font-size,text-align,background-color', + 'Core.EscapeNonASCIICharacters' => true, 'AutoFormat.AutoParagraph' => true, 'AutoFormat.RemoveEmpty' => true, 'HTML.TargetBlank' => true, @@ -57,7 +58,7 @@ class Purifier $serializerPath = cache_path('purifier'); - if (file_exists($serializerPath) == false) { + if (!file_exists($serializerPath)) { mkdir($serializerPath, 0777); }