I have a textarea
<textarea id="postContent" class="input-block-level" placeholder="Tell us about it!" rows="4"></textarea>
and I need a script that highlights the links written inside the textarea, stores them in a variable (array) for later processing and removes all html-tags. The behavior is well-know from the tweet-box on twitter.
So the content could be
Look what I have found today on www.stackoverflow.com!
and in that case, www.stackoverflow.com should be highlighted (wrapped in a <p>
f.e.) without the "!".
How would you do that with jQuery?