plodos Posted November 25, 2008 Share Posted November 25, 2008 $notices = $_REQUEST['notices']; if(!function_exists('XMLStrFormat')) { function XMLStrFormat($str){ $str = str_replace("&", "&", $str); $str = str_replace("<", "<", $str); $str = str_replace(">", ">", $str); $str = str_replace("'", "'", $str); $str = str_replace("\"", """, $str); $str = str_replace("\r", "", $str); return $str; } } $a= XMLStrFormat($notices); is it same with $a = htmlentities($notices); im trying to write RSS but it doesnt like html characters.. which way is better to save strings in MySQL for correct RSS format? I checked http://tr2.php.net/htmlentities ... there are lots of different functions, I didnt understand the difference? Quote Link to comment Share on other sites More sharing options...
paulman888888 Posted November 25, 2008 Share Posted November 25, 2008 1 word answer! BLOB Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.