<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ı
'&' (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
butonuna tıklayınız.!