Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 479 → Rev 483

/trunk/bibliotheque/bazar.fonct.rss.php
1390,7 → 1390,7
 
function transformerTxtPourRss($txt) {
$txt_utf8 = encoderEnUtf8($txt);
$txt_utf8 = remplacerEsperluettesIsoleesParEntiteHtml($txt_utf8);
$txt_utf8 = htmlspecialchars($txt_utf8, ENT_NOQUOTES, "UTF-8", false);
$txt_utf8 = remplacerCaracteresAsciiInvisibles($txt_utf8);
$txt_utf8 = remplacerCaracteresCp1252Problematiques($txt_utf8);
return $txt_utf8;
1402,11 → 1402,6
return $txtEnUtf8;
}
 
function remplacerEsperluettesIsoleesParEntiteHtml($txtEnUtf8) {
$txtEnUtf8 = preg_replace('/ \x{0026} /u', ' & ', $txtEnUtf8);// Remplacement des & isol�s
return $txtEnUtf8;
}
 
function remplacerCaracteresAsciiInvisibles($txtEnUtf8) {
$ascii_remplacements = array (
'\x00' => '', // NUL : Null (nul)