View Single Post

  #18 (permalink)  
Old 13-05-2008, 11:24 AM
louie's Avatar
louie louie is online now
Senior Member
 
Join Date: Jan 2006
Location: Dublin, Ireland
Posts: 2,078
Nominated 5 Times in 3 Posts
Nominated TOTW/F/M Award(s): 1
louie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enoughlouie will become famous soon enough
Send a message via Yahoo to louie Send a message via Skype™ to louie
Default

that is normal as you are using "mysql_escape_string"

try using stripslashes($str) when displaying or convert the text
PHP Code:
function unhtmlentities ($string) {
  
// Get HTML entities table
  
$trans_tbl get_html_translation_table (HTML_ENTITIESENT_QUOTES);
  foreach(
$trans_tbl as $key => $value){
   
$trans_tbl[$key] = "&#"ord($key) . ";";
  }
  
$trans_tbl[chr(38)] = "&";
  return 
strtr($string,$trans_tbl);
  } 
__________________
:. Web Design & Development Web Design Ireland
:. Search Engines Optimization Search Engines Optimization
:. Used Cars Ireland, Car Parts & Car Audio Cars For Sale, Car Parts & Accessories
:. I Have 2 Find It Directory SEF Directory

Last edited by louie; 13-05-2008 at 11:26 AM.
Reply With Quote