// $value = '123'; // echo preg_replace('/(.*?)<\\/a>/i', '$2', $value); // $text = preg_replace('/(.*?)<\\/font>/i', '$2', $text); $text = preg_replace('//i', '$2', $text); //Phần bị cắt $text = preg_replace('/(.*?)<\\/p>/i', '$2
', $text); $text = preg_replace('/

/i', '$2
', $text); //Phần bị cắt $text = preg_replace('/(.*?)<\\/span>/i', '$2', $text); $text = preg_replace('//i', '$2', $text); //Phần bị cắt $text = preg_replace('//i', '', $text); //Xóa nội dung của TAG, áp dụng cho dân trí ?> ", ">", $str); $str = str_replace("'", "'", $str); $str = str_replace("\"", """, $str); $str = str_replace("\r", "", $str); $str = strtr($str,$asc2uni); return $str; } ?> ]*?>.*?@siu', '@]*?>.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', '@]*?.*?@siu', // Add line breaks before and after blocks '@