Ben senin assistence ilgili php gerekir. Php, html i <img> etiketleri yalnızca, PHP'nin yerleşik fonksiyonunu strip_tags() denedim ama bana i need çıkış vererek değil izin istiyoruz. Örneğin, aşağıdaki kodda strip_tags() ancak metinle birlikte img etiketleri sağlar.
$img = "<img src='/img/fawaz.jpg' alt= ''> <br /> <p> This is a detailed paragraph about Fawaz and his mates.</p>";
echo strip_tags($img , "<img>");
What would be the proper way to just allow <img> or any tag only from the function or variable.
Any help 'd be appreciated.
Teşekkürler