I am trying to get help i need to remove URL links from data before importing into mysql i need to strip links from a function i new to php so i don't know much and after 6 hours of trying to learn myself i have been unsuccessfully
<a href="test.com">test link</a>
, test2.co.uk, test.2.au and so on.
I also need to be able to strip a <p></p> tag but preserve data between the tag.
I know i can use strip_tags but i want to allow certain tags but any hidden links must be removed any idea where i can start