Hi all, I am at a stand still with trying to figure this out.
I have a textarea, i would like to check for links entered by users and replace/remove the anchor attribute from the string.
ie. change <a href='google.com'>website</a>
to website
its more so to validate ( i have a php side working to validate for links but am trying to get jquery to just remove it and maybe say a warning.
function textarea(){
var message = $("#text").val();
// How would you check the text here and remove all links typed in by the user
});
if someone might know where to start with this it would be much appreciated
Thanks,