i want to strip all the html tags from a string except ( <img> and <br> ).
i used strip_tags(); but it stript all the html tags.
regards
Those need to be specified in the second argument.
echo strip_tags($text, '<img><br>');
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With