]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Babel.php
Merge pull request #10613 from annando/improved-payload
[friendica.git] / src / Module / Debug / Babel.php
index 322b742fbe475d61dae68aa86505ff4a1c1cfc8c..ff8bc874110820494fce2bb908abeb0f5a239d44 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -180,9 +180,7 @@ class Babel extends BaseModule
                                                'content' => $html
                                        ];
 
-                                       $config = \HTMLPurifier_Config::createDefault();
-                                       $HTMLPurifier = new \HTMLPurifier($config);
-                                       $purified = $HTMLPurifier->purify($html);
+                                       $purified = Text\HTML::purify($html);
 
                                        $results[] = [
                                                'title'   => DI::l10n()->t('HTML Purified (raw)'),