Update functions.php

This commit is contained in:
danpros 2024-03-31 12:16:56 +07:00
commit 0167cdf4b5

View file

@ -2262,7 +2262,7 @@ function shorten($string = null, $char = null)
if(empty($string)) {
return;
}
$string = str_replace('<span class="details">'. config('toc.label') .'</span>', '', $string);
libxml_use_internal_errors(true);
$dom = new DOMDocument();
$dom->loadHTML('<meta charset="utf8">' . $string);