diff --git a/corpus_web_fonctions.php b/corpus_web_fonctions.php index f81d832..5efcedd 100644 --- a/corpus_web_fonctions.php +++ b/corpus_web_fonctions.php @@ -334,7 +334,13 @@ function recup_liens_int($html) { continue; } if (!array_key_exists($m[3], $liens_int)) { - $liens_int[$m[3]] = $m[7]; + // recup title si existe + preg_match('/title="([^"]*)/si', $m[4], $match2); + if ($match2 && $match2[1] !== '') { + $liens_int[$m[3]] = $m[7].' (title: '.$match2[1].')'; + } else { + $liens_int[$m[3]] = $m[7]; + } } } } diff --git a/json_affiche_corpus.json.html b/json_affiche_corpus.json.html index b744d57..4a30d5c 100644 --- a/json_affiche_corpus.json.html +++ b/json_affiche_corpus.json.html @@ -37,6 +37,7 @@ "keywords": "w200p", "trackers": "w100p", "rezos": "w100p", + "titres": "minw400p", "liens_int": "w400p maxw400p", "text": "minw400p" }