$texte = preg_replace('/\s{2,}/S'.$u, " ", $texte);
// ne pas echapper les sinqle quotes car certains outils de syndication gerent mal
$texte = entites_html($texte, false, false);
+ // mais bien echapper les double quotes !
+ $texte = str_replace('"','"',$texte);
// verifier le charset
$texte = charset2unicode($texte);
}
}else{
if($dtabbr && $dtstart)
- $s = $dtstart.spip_ucfirst($s).$dabbr;
+ $s = $dtstart.spip_ucfirst($s).$dtabbr;
else
$s = spip_ucfirst($s);
}
} else {
$r[4] = trim($r[2]);
}
- $att = filtrer_entites(str_replace("'", "'", $r[4]));
+ $att = $r[4];
+ if (strpos($att,"&#")!==false)
+ $att = str_replace(array("'","'",""","""), array("'","'",'"','"'), $att);
+ $att = filtrer_entites($att);
}
else
$att = NULL;