function parse($text) { 
   
// Damn pesky carriage returns... 
    $text
= str_replace("\r\n", "\n", $text); 
    $text
= str_replace("\r", "\n", $text); 
 
   
// JSON requires new line characters be escaped 
    $text
= str_replace("\n", "\\n", $text); 
   
return $text; 
} 
2010/03/18 03:28 2010/03/18 03:28

Trackback Address :: https://youngsam.net/trackback/1071