mirror of
https://github.com/friendica/friendica
synced 2025-04-20 15:10:12 +00:00
Move HTML purification to own method in Content\Text\HTML
This commit is contained in:
parent
5b8f7361ea
commit
93823ecef5
3 changed files with 69 additions and 26 deletions
|
@ -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)'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue