mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-23 15:26:49 +00:00
Fix description truncation for <a> and <img>
Language::truncateForVisual() is for plain text strings, while Language::truncateHTML() is, unsurprisingly, for HTML. Bug: T32377 Change-Id: Ica171d7c87781801a6634abd6056880bf02f96f0
This commit is contained in:
parent
2cd2cccdf2
commit
cec3712651
|
@ -443,7 +443,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