Extracts all the cashtags and the indices they occur at from the tweet.
public extractCashtagsWithIndices ( ) : array | ||
Résultat | array | The cashtag elements in the tweet. |
/** * Auto-link $cashtag references in the provided Tweet text. The $cashtag links will have the cashtagClass CSS class * added. * * @return string that auto-link HTML added * @since 1.1.0 */ public function autoLinkCashtags($tweet = null) { if (is_null($tweet)) { $tweet = $this->tweet; } $entities = $this->extractor->extractCashtagsWithIndices($tweet); return $this->autoLinkEntities($tweet, $entities); }