Tweaking the Tweet Follow Button Require a little help with removing the pre-parsed text from Dukt's {{ twitterTweetButton() }}

 &lt;li&gt;&lt;a href="  {{ twitterTweetButton({
                        text: "some text",
                        target: "_blank"
                    }) }}"&gt;&lt;i class="fa fa-twitter" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;&lt;/li&gt;


This does not work....

The docs specify the following Twig functions:


text — Pre-populated text highlighted in the Tweet composer.
url — URL included with the Tweet.
hashtags — A comma-separated list of hashtags to be appended to
default Tweet text.
via — Attribute the source of a Tweet to a Twitter username.
related — A comma-separated list of accounts related to the content
of the shared URI.
size — Set to large to display a larger button.
lang — A supported Twitter language code. Loads text components in
the specified language. Note: does not affect the text of the cited
Tweet.
dnt — When set to true, the Tweet and its embedded page do not
influence Twitter targeting including suggested accounts.
This is what the function currently does

public function tweetButton($options = [])
{
    $dataAttributes = $this-&gt;getOptionsAsDataAttributes($options);

    $html = '&lt;a class="twitter-share-button" href="https://twitter.com/share"'.$dataAttributes.'&gt;Tweet&lt;/a&gt;';

    return $html;
}


So it returns an a tag rather than a link. You should remove your outer tag but you can't place your custom text. You would have to use a string replace function 

{{ twitterTweetButton()|replace({'&gt;Tweet&lt;':' &gt;my custom text&lt;' }) }}