When my users find a great idea on my site, I want them to be able to click an "Add" button next to the idea, which opens a popup with a textarea that is pre-filled with that idea's content. The user can then edit the idea content before adding it to their to do list.
I've got this jQuery function working, but if the idea content has links, the pre-filled textarea is filled with ugly anchor tags. How can I display the links as HTML instead of displaying the anchor tags?
Here's my jQuery code:
$(_this.attr('href')).find('textarea').val(_this.closest('li').find('.textarea-content').html());
Thanks.