forked from Wavyzz/dolibarr
Fix: [ bug #253 ] Non UTF-8 characters in CSV exports
This commit is contained in:
@@ -3524,12 +3524,13 @@ function picto_required()
|
||||
*
|
||||
* @param StringHtml String to clean
|
||||
* @param removelinefeed Replace also all lines feeds by a space
|
||||
* @param pagecodeto Encoding of input string
|
||||
* @return string String cleaned
|
||||
*/
|
||||
function dol_string_nohtmltag($StringHtml,$removelinefeed=1)
|
||||
function dol_string_nohtmltag($StringHtml,$removelinefeed=1,$pagecodeto='UTF-8')
|
||||
{
|
||||
$pattern = "/<[^>]+>/";
|
||||
$temp = dol_entity_decode($StringHtml);
|
||||
$temp = dol_entity_decode($StringHtml,$pagecodeto);
|
||||
$temp = preg_replace($pattern,"",$temp);
|
||||
|
||||
// Supprime aussi les retours
|
||||
|
||||
Reference in New Issue
Block a user