Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sander van de Pas 74 posts 147 karma points
    Oct 12, 2011 @ 10:36
    Sander van de Pas
    0

    Use of hashtag in twitter search

    I'm using the Twitter search in xslt to display tweets. Now I've a query like this:

    <xsl:variable name="twitterUrl" select="'http://search.twitter.com/search.atom?rpp=1&amp;q=&quot;item1&quot;+OR+&quot;item2&quot;+OR+&quot;item&quot;+OR+from:user1+OR+from:user2+OR+from:user3'"/>

      <xsl:variable name="twitterSearchFeed" select="umbraco.library:GetXmlDocumentByUrl($twitterUrl)"/>

    Now I want to add an extra search option, like #hastag1, but when I add it like '+OR+#hastag1' it won't display right! What's the code for the hashtag in XSLT??

    Thanx!

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Oct 12, 2011 @ 12:32
    Chriztian Steinmeier
    0

    Hi Sander,

    The hash has special meaning in a URL so you need to use the URLEncoded version of it, which is %23:

    '+OR+%23hashtag1'

    /Chriztian 

     

Please Sign in or register to post replies

Write your reply to:

Draft