@caxe;
<?php
header("Content-Type: text/plain; charset=UTF-8");
function htmlentities_without_slashes($string) {
return htmlentities(stripslashes($string), ENT_NOQUOTES, "UTF-8");
}
$string = "<iframe src=\"http://www.google.com.tr/\" frameborder=\"0\"></iframe>";
print_r(
htmlentities_without_slashes(
$string
)
);
/*
$$$ OUTPUT $$$
<iframe src="http://www.google.com.tr/" frameborder="0"></iframe>
*/