Hello there,
In the PDF generator with title default very good, But With my language, there are some “mark” formats that not good for reader, so i want to remove it when PDF is created.
I’ve tried in /generatedPDF.php and found that !
$search = array(
'/<script[^>]*?>.*?<\/script>/si', // Strip out javascript
'/<[\/\!]*?[^<>]*?>/si', // Strip out HTML tags
'/([\r\n])[\s]+/', // Strip out white space
'/&(quot|#34);/i', // Replace HTML entities
'/&(amp|#38);/i',
'/&(lt|#60);/i',
'/&(gt|#62);/i',
'/&(nbsp|#160);/i',
'/&(iexcl|#161);/i',
'/<address[^>]*?>/si',
'/&(apos|#0*39);/',
'/&#(\d+);/',
);
$replace = array(
'',
'',
'\1',
'"',
'&',
'<',
'>',
' ',
chr(161),
'<br>',
"'",
'chr(%1)',
);
HOW CAN ADD MORE WITH THIS ?
$chars = array(
'a'=>array('ấ','ầ','ẩ','ẫ','ậ','Ấ','Ầ','Ẩ','Ẫ','Ậ','ắ','ằ','ẳ','ẵ','ặ','Ắ','Ằ','Ẳ','Ẵ','Ặ','á','à','ả','ã','ạ','â','ă','Á','À','Ả','Ã','Ạ','Â','Ă'),
'e' =>array('ế','ề','ể','ễ','ệ','Ế','Ề','Ể','Ễ','Ệ','é','è','ẻ','ẽ','ẹ','ê','É','È','Ẻ','Ẽ','Ẹ','Ê'),
'i'=>array('í','ì','ỉ','ĩ','ị','Í','Ì','Ỉ','Ĩ','Ị'),
'o'=>array('ố','ồ','ổ','ỗ','ộ','Ố','Ồ','Ổ','Ô','Ộ','ớ','ờ','ở','ỡ','ợ','Ớ','Ờ','Ở','Ỡ','Ợ','ó','ò','ỏ','õ','ọ','ô','ơ','Ó','Ò','Ỏ','Õ','Ọ','Ô','Ơ'),
'u'=>array('ứ','ừ','ử','ữ','ự','Ứ','Ừ','Ử','Ữ','Ự','ú','ù','ủ','ũ','ụ','ư','Ú','Ù','Ủ','Ũ','Ụ','Ư'),
'y'=>array('ý','ỳ','ỷ','ỹ','ỵ','Ý','Ỳ','Ỷ','Ỹ','Ỵ'),
'd'=>array('đ','Đ'),
);
THANK YOU VERY MUCK !