Убрал wrapping

This commit is contained in:
Alexander Yakovlev 2017-10-16 15:10:28 +07:00
parent ac4d9225e5
commit f7a4fe6a46
1 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,11 @@ function ellipse($str,$n_chars,$crop_str='[...]')
function formatdsc($description) {
global $pandoc;
$description = strip_tags($description, 'img');
$description = $pandoc->convert($description, "html", "plain");
$description = $pandoc->runWith($description, [
'from' => 'html',
'to' => 'plain',
'wrap' => 'none'
]);
$description = str_replace('Читать дальше', '', $description);
$description = trim($description);
return $description;