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? Link to comment https://forums.phpfreaks.com/topic/134215-htmlentities-for-rss-i-need-an-idea/ Share on other sites More sharing options...
paulman888888 Posted November 25, 2008 Share Posted November 25, 2008 1 word answer! BLOB Link to comment https://forums.phpfreaks.com/topic/134215-htmlentities-for-rss-i-need-an-idea/#findComment-698707 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.