Add Babel result screen for compact HTML::toPlaintext
This commit is contained in:
@@ -159,6 +159,12 @@ class Babel extends BaseModule
|
|||||||
'title' => L10n::t('HTML::toPlaintext'),
|
'title' => L10n::t('HTML::toPlaintext'),
|
||||||
'content' => '<pre>' . $text . '</pre>'
|
'content' => '<pre>' . $text . '</pre>'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$text = Text\HTML::toPlaintext($html, 0, true);
|
||||||
|
$results[] = [
|
||||||
|
'title' => L10n::t('HTML::toPlaintext'),
|
||||||
|
'content' => '<pre>' . $text . '</pre>'
|
||||||
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user