PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello. I have a form in my website where people will put their html code. What I want to do is to be able to take all the links in that html and swap them with something else. So that would be 2 processes, first get all the links and then swap them. For example
I havce a problem with this, lets say sometimes people dont write the links as <a href=.... but sometimes they might write <a id=something href=.... , so it wouldnt work in that case, how can i make it work for any case? thanks!