diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3
index fccf26bf2256b7016d97f3f6d7e99d2f1d5e762a..f840295020e06684b8b1ba622f455f1dbb7d7520 100644
--- a/ecrire/inc_texte.php3
+++ b/ecrire/inc_texte.php3
@@ -217,7 +217,7 @@ function couper($texte, $long) {
 	$texte = ereg_replace("\[\[([^]]|\][^]])*\]\]", "", $texte);
 
 	// supprimer les codes typos
-	$texte = strtr($texte,"{}","  ");
+	$texte = ereg_replace("[{}]", "", $texte);
 
 	$texte2 = substr($texte." ", 0, $long);
 	$texte2 = ereg_replace("([^[:space:]][[:space:]]+)[^[:space:]]*$", "\\1", $texte2);