Questions tagged [hashtag]

A hashtag is an in-text label that classifies content into a specific category, first popularized by Twitter users and now common in social media.

A hashtag is a hash sign (#) followed by a string which is usually alphanumeric, without spaces, punctuation or capitalization. It is used to classify the text in which it is contained and allow searching for related content.

Because of its adoption and usage by a large user base, it has been used in the filtering, searching and sorting of tweets and posts on other supporting social media platforms.

Examples

  • #StackOverflow
  • #StackExchange
  • #1337code
834 questions
9
votes
6 answers

AngularJS and Laravel 4 routing conflict in HTML5 mode

I would like to remove the # hash from URLs using Angularjs' $locationProvider.html5Mode(true). Example: The address bar displays http://localhost/shop instead of http://localhost/#/shop. Everything works well untill I refresh a page. If i…
user1894374
  • 233
  • 3
  • 19
9
votes
7 answers

Parse text for hashtags and replace with links using php

I have some text with twitter-style #hashtags. How would I write a function to parse a body of text that might contain an unlimited number of #hashtags, take the text of the hashtag and replace them all with an [hashtag…
Amy Neville
  • 10,067
  • 13
  • 58
  • 94
8
votes
0 answers

How would you display hashtag content on a website?

It looks from Instagram API that if you want to display hashtag content based, you can't anymore (because it requires public_content scope). From official website: This use case is not supported. We do not approve the public_content permission for…
markzzz
  • 47,390
  • 120
  • 299
  • 507
8
votes
2 answers

Hashtag within string breaks JavaScript

I am trying to save a string to an external file using JavaScript. Below is what I am executing. var mytext = "1111#1111" var a = document.body.appendChild(document.createElement("a")); a.download = "My_output.html"; a.href = "data:text/html," +…
8
votes
2 answers

How to disable anchor jump when loading a page

When I visit my_site.com/page.php#something, the scroll position is the one of the element carrying this particular hashtag rather than the top of the page. Executing window.scrollTo(0, 0); doesn't change this fact. What can then? EDIT: also tried…
drake035
  • 3,955
  • 41
  • 119
  • 229
8
votes
1 answer

AngularJS is putting forward slash / after hash tag

I'm trying to use AngularJS $anchorScroll with $location.hash. However, when I set the hash, AngularJS adds a forward slash, / after it. For example, the url is: http://localhost:13060/Dashboard. When I don't include the AngularJS library, I can…
jth_92
  • 1,120
  • 9
  • 23
8
votes
2 answers

Backbone router with multiple parameters

I need to get this to work: routes: { ':product' : 'showProduct', ':product/:detail': 'showProductDetail' showProductDetail never gets called while the ':product' route is set even if it is set afterwards. I tried the following routes: { …
matteok
  • 2,189
  • 3
  • 30
  • 54
8
votes
3 answers

Regex to match hashtags in a sentence using ruby

I am trying to extract hashtags for a simple college project using ruby on rails. I am facing issue with tags that include only numericals and with tags with no space. text = "Pack my #box with #5 dozen liquor.#jugs link.com/liquor#jugs #2good…
gkolan
  • 1,571
  • 2
  • 20
  • 37
8
votes
2 answers

Why URI-encoded ('#') anchors cause 404, and how to deal with it in JS?

prettyPhoto utilizes hashtags, but if they get encoded (to %23), most browsers will bring up a 404 error. This has been discussed before: You get a 404 error because the #callback part is not part of the URL. It's a bookmark that is used by the…
Drew
  • 189
  • 1
  • 6
7
votes
3 answers

how to store user mentions

I want to implement user mentions with @username like in Twitter. But, in my app, the username may change. My approach is to parse the post before saving into the database and convert all the @username to @userId. What do you think of this? Does…
nezgerland
  • 361
  • 1
  • 4
  • 12
7
votes
1 answer

Facebook API to search public posts containing a particular hashtag

Is there any Facebook Graph API to search all public posts containing a particular hashtag? Example:- I want to search all public posts containing #ChristmasEve
david419
  • 435
  • 3
  • 8
  • 18
7
votes
2 answers

How to extract Hashtags from Tweepy using tweepy.Cursor and api.search?

Tweepy has done a good job extracting all other information (except hashtags) I need by applying the tweepy.Cursor and api.search methods (as shown below). I know from the documentation that Hashtags are under this structure Status > entities >…
KubiK888
  • 4,377
  • 14
  • 61
  • 115
7
votes
2 answers

How to implement Tag search?

I've designed a news hub system which read Rss links and stores whole news in the database. Now I want to implement a search system using tags. Each news has it's own tags. There are lots of algorithms to implement this but I don't know what is the…
ehsan shirzadi
  • 4,709
  • 16
  • 69
  • 112
7
votes
1 answer

How to set the default text of a facebook share dialog?

So I have the facebook title in it and description, but how can I set the default text for a given share? Basically I'm using just a link https://www.facebook.com/sharer/sharer.php?u=http://example.com, what I'd like to do is add a hash tag as a…
Xeen
  • 6,955
  • 16
  • 60
  • 111
7
votes
2 answers

How do I use javascript to replace hash tags with links from a jquery data-attribute

I'm effectively trying to do the same as in this question Change #hash tag to link on page load But I think because I'm getting the string from a jquery objects data-caption attribute something isn't working correctly. I have a DOM element like…
Brian
  • 4,328
  • 13
  • 58
  • 103
1 2
3
55 56