]> git.mxchange.org Git - friendica.git/commitdiff
Update HTML::purify debug comment formatting
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 5 Apr 2021 00:21:10 +0000 (20:21 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 5 Apr 2021 00:21:10 +0000 (20:21 -0400)
src/Content/Text/HTML.php

index 36a926a2db55c51675850aa35cc1d87e9a770c2f..b68cbf67f315ac6f7bba8732ba99ac4907b6ea90 100644 (file)
@@ -1003,20 +1003,19 @@ class HTML
                        '_blank' => true,
                ]);
 
-               /* Uncomment to debug HTMLPurifier behavior
-               $config->set('Core.CollectErrors', true);
-               $config->set('Core.MaintainLineNumbers', true);
-               */
+
+               // Uncomment to debug HTMLPurifier behavior
+               //$config->set('Core.CollectErrors', true);
+               //$config->set('Core.MaintainLineNumbers', true);
 
                $HTMLPurifier = new \HTMLPurifier($config);
 
                $text = $HTMLPurifier->purify($text);
 
                /** @var \HTMLPurifier_ErrorCollector $errorCollector */
-               /* Uncomment to debug HTML Purifier behavior
-               $errorCollector = $HTMLPurifier->context->get('ErrorCollector');
-               var_dump($errorCollector->getRaw());
-               */
+               // Uncomment to debug HTML Purifier behavior
+               //$errorCollector = $HTMLPurifier->context->get('ErrorCollector');
+               //var_dump($errorCollector->getRaw());
 
                return $text;
        }