/** * Auto-link the @username and @username/list references in the provided text. Links to @username references will * have the usernameClass CSS classes added. Links to @username/list references will have the listClass CSS class * added. * * @return string that auto-link HTML added * @since 1.1.0 */ public function autoLinkUsernamesAndLists($tweet = null) { if (is_null($tweet)) { $tweet = $this->tweet; } $entities = $this->extractor->extractMentionsOrListsWithIndices($tweet); return $this->autoLinkEntities($tweet, $entities); }