View Single Post
  #2  
Old 03-30-2011, 09:36 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 33,518
fadillzzz is an unknown quantity at this point
Default

Use stripslashes() & htmlspecialchars_decode()

PHP Code:
$string "You\'ve";
$string stripslashes($string); // You've 
PHP Code:
$string "\"I\'m so sorry!\"";
$string htmlspecialchars($string); // "I'm so sorry!" 
Reply With Quote