PHP htmlspecialchars Yardım lazım
<iframe src="http://www.google.com.tr" scrolling="no" frameborder="0" align="center" height = "90" width = "728" name="test" border="0">
</iframe>
üstteki
örnek kodu post ettiriyorum
htmlspecialchars($_POST['icerik'], ENT_QUOTES);
kodu ile kodu çıktısı şu şekılde oluyor
<iframe src=\"http://www.google.com.tr\" scrolling=\"no\" frameborder=\"0\" align=\"center\" height = \"90\" width = \"728\" name=\"test\" border=\"0\"></iframe>
benım istedigim kod şeklı şu halde olcak
Alıntı
<iframe src='
http://www.google.com.tr' scrolling='no' frameborder='0' align='center' height = '90' width = '728' name='test' border="0">
</iframe>
'&' (ampersand) becomes '&'
'"' (double quote) becomes '"' when ENT_NOQUOTES is not set.
"'" (single quote) becomes ''' (or ') only when ENT_QUOTES is set.
'<' (less than) becomes '<'
'>' (greater than) becomes '>'
< gibi kodları & yapmasını istiyorum