Merge pull request #7198 from MrPetovan/task/6861-to-plaintext

Simplify BBCode::toPlaintext and HTML::toPlaintext
This commit is contained in:
Philipp 2019-05-28 07:49:25 +02:00 committed by GitHub
commit be3d7759f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 30 deletions

View file

@ -159,6 +159,12 @@ class Babel extends BaseModule
'title' => L10n::t('HTML::toPlaintext'),
'content' => '<pre>' . $text . '</pre>'
];
$text = Text\HTML::toPlaintext($html, 0, true);
$results[] = [
'title' => L10n::t('HTML::toPlaintext'),
'content' => '<pre>' . $text . '</pre>'
];
}
}