mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-23 15:26:49 +00:00
Merge "Fix description truncation for <a> and <img>"
This commit is contained in:
commit
f0194c9e47
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue