Merge "Fix description truncation for <a> and <img>"

This commit is contained in:
jenkins-bot 2024-09-30 18:47:47 +00:00 committed by Gerrit Code Review
commit f0194c9e47

View file

@ -458,7 +458,7 @@ class RSSParser {
break;
default:
$str = $this->escapeTemplateParameter( $item[$info] );
$str = $parser->getTargetLanguage()->truncateForVisual( $str, $this->ItemMaxLength );
$str = $parser->getTargetLanguage()->truncateHTML( $str, $this->ItemMaxLength );
$str = $this->highlightTerms( $str );
$renderedItem = str_replace( '{{{' . $info . '}}}',
$this->insertStripItem( $str ), $renderedItem );