Building a Hashtag in Javascript without matching Anchor Names, BBCode or Escaped Characters
- by Martindale
I would like to convert any instances of a hashtag in a String into a linked URL:
#hashtag - should have "#hashtag" linked.
This is a #hashtag - should have "#hashtag" linked.
This is a [url=http://www.mysite.com/#name]named anchor[/url] - should not be linked.
This isn't a pretty way to use quotes - should not be linked.
Here is my…