Does anyone know how I can delete/replace a HTML tag from a string.
For example I have a string "Tekst <a href="http://variable-link">LINK</a> tekst" and I want to have an output string "Tekst LINK tekst"
Try this:
print"Tekst <a href=\"http://variable-link\">LINK</a> tekst" ;
Not quite sure what that gonna do for him, Leena, I think he wants str_tags($str) ...
laughs Oohhhh I see. Sorry I misunderstood the question. 😃
That's strip_tags() 🙂
i typ to fas....
Thanks!