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 62 posts 122 karma points
    Oct 12, 2011 @ 10:36
    Sander van de Pas

    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="';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??


  • Chriztian Steinmeier 2711 posts 8148 karma points MVP 3x admin c-trib
    Oct 12, 2011 @ 12:32
    Chriztian Steinmeier

    Hi Sander,

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




Please Sign in or register to post replies

Write your reply to: