@@ -27,7 +30,7 @@
[(#CLE|=={htmlBytes}|non)
[(#CLE)] :
- [(#VALEUR|print|replace{<,<}|replace{>,>})]
+ [(#VALEUR|print|replace{
,§§}|replace{<,<}|replace{>,>}|replace{§§,
})]
]
@@ -68,4 +71,7 @@
width: 100%;
height: 200px;
}
+ .non_traite {
+ color: #777;
+ }
\ No newline at end of file
diff --git a/corpus_web_fonctions.php b/corpus_web_fonctions.php
index d642bc1..e5abd5a 100644
--- a/corpus_web_fonctions.php
+++ b/corpus_web_fonctions.php
@@ -47,4 +47,10 @@ function affiche_ligne($fichier, $num) {
fclose($handle);
}
return 'Erreur : nombre de lignes du fichier '.$fichier.' inférieur à '.$num;
+}
+
+function human_filesize($bytes, $decimals = 2) {
+ $sz = 'BKMGTP';
+ $factor = floor((strlen($bytes) - 1) / 3);
+ return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . @$sz[$factor];
}
\ No newline at end of file