1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Service Issue Share TwitterPage

Discussion in 'Resolved Bug Reports' started by ragtek, May 26, 2011.

  1. ragtek

    ragtek Guest

    My Thread Title is:
    As i wanted to tweet this, the twitter window showed:
    Already > 15 Add-ons available here http://t.co/Mh3Al5x via @ragtek

    > was escaped to >
     
  2. Mike

    Mike XenForo Developer Staff Member

    I think that's a Twitter bug. Here's the HTML:

    HTML:
                    <div class="tweet shareControl">
    
                        <a href="http://twitter.com/share" class="twitter-share-button"
                            data-count="horizontal"
                            data-lang="en"
                            data-url="http://ragtek.org/xenforo/threads/already-15-add-ons-available-here.138/"
                            data-text="Already &gt; 15 Add-ons available here"
                            data-via="ragtek"
                            >Tweet</a>
                    </div>
    You can see that the data-text is an attribute, so as such we have to escape entities to be valid/safe. &gt; in an attribute is a >. It looks like Twitter's code isn't doing that unescaping.
     
  3. Vincent

    Vincent Well-Known Member

Share This Page