We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f994c commit 5f49d0bCopy full SHA for 5f49d0b
src/Templates/Document/View.phtml
@@ -35,7 +35,7 @@ if ($object)
35
$description = filter_var($brief, FILTER_SANITIZE_FULL_SPECIAL_CHARS);
36
if (empty($description))
37
{
38
- $description = rtrim(StringProcessor::stripUpTo(StringProcessor::stripUpTo(trim(filter_var($content, FILTER_SANITIZE_FULL_SPECIAL_CHARS)), "\n", 300), '. ', 300), '.');
+ $description = rtrim(StringProcessor::stripUpTo(StringProcessor::stripUpTo(trim(strip_tags($content)), "\n", 128), '. ', 128), '.');
39
}
40
41
$edit_url = UrlFormatter::format('/document/edit?id=' . rawurlencode($object_id));
0 commit comments