The easy way to convert anchor tag of word of sentence which on start from a specific character or symbol, like social media captions who contains combination of hash tag (start from #),mention user (start from @) and plain text. using Javascript you can convert into each has tag into anchor tag using replace function by specific pattern.
Replace Function
var str="Welcome to Programming Concepts"; str.replce("#","");
Result
Welcome to programming concept
Example
var str = "Welcome to programming concept #programming #concept #php #html #js #android"; var url = str.replace(/(^|\s)(#[a-z\d-]+g, function (match, capture) { return '<a href="http://example.com/?param1='+match.replace(" ","") .replace("#","")+'">'+match+'<a>'; });
Hello, My Name is pradip parker . I am a Web Developer, Professional Blogger from India. i love and like web designing and developing, i have two year of experience in programming and developing I am the founder of programmingconcept. I started this blog in 2017 to for help developers by providing easy,small and best tutorials.
I simply wanted to type a simple remark in order to say thanks to you for those pleasant information you are giving out at this site. My considerable internet investigation has at the end been compensated with useful suggestions to exchange with my great friends. I would declare that most of us website visitors actually are undoubtedly blessed to dwell in a good site with very many awesome professionals with helpful basics. I feel very much happy to have encountered your entire webpages and look forward to really more awesome minutes reading here. Thanks a lot again for everything.
Great work! This is the type of information that should be shared around the internet. Shame on the search engines for not positioning this post higher! Come on over and visit my site . Thanks =)
I like this page, some useful stuff on here : D.
I just want to tell you that I am just beginner to blogging and site-building and seriously savored you’re web blog. Likely I’m going to bookmark your blog post . You definitely come with impressive posts. Thanks for revealing your web site.
This is good. Thanks!
Found this on bing and I’m happy I did. Well written web.
Just wanna input on few general things, The website layout is perfect, the articles is very superb : D.
bing took me here. Cheers!
very nice post, i actually love this web site, carry on it
Intresting, will come back here later too.
I simply must tell you that you have an excellent and unique web that I really enjoyed reading.
This helps. Thanks!
Deference to op , some superb selective information .
I have interest in this, xexe.
Hello, i really think i will be back to your website