Je pensais m'en sortir simplement mais avec mes faibles connaissance en AS, je séche !
Je récupère d'un script php (http://www.citation.fr/citation.php) le code suivant :
document.write("<
span id=
'citation'>La langue évolue par l'introduction de mots nouveaux. Une langue faite uniquement de mots nouveaux serait cependant incompréhensible.<
br>Gombrich, E. H.</
span><
span style=
'font-size:10px'> &
nbsp; &
copy; <
a href=
'http://www.citation.fr'>citation.fr</
a></
span>");
Je le récupère comme ça : txt.load("http://www.citation.fr/citation.php");
Par contre si je fais un trace(txt), j'obtiens ça :
copy%3B%20%3Ca%20href=%27http%3A%2F%2Fwww%2Ecitation%2Efr%27%3Ecitation%2Efr%3C%2Fa%
3E%3C%2Fspan%3E%22%29%3B%0A %3B%20=&document%2Ewrite%28%22%3Cspan%20id=%27
citation%27%3ELa%20langue%20%EF%BF%BDlue%20par%20l%27introduction%20de%20mots%20nouveaux
%2E%20Une%20langue%20faite%20uniquement%20de%20mots%20nouveaux%20serait%20cependant%20
incompr%EF%BF%BDnsible%2E%3Cbr%3EGombrich%2C%20E%2E%20H%2E%3C%2Fspan%3E%3C
span%20style%3D%27font%2Dsize%3A10px%27%3E%20&onLoad=%5Btype%20Function%5D
D'abord, quelqu'un sait-il pourquoi un tel encodage (problème UTF 8 ?) ???
Ensuite si il est possible de récupère cette chaîne correctement, je ne sais pas comment extraire le texte sans le code JS ... Ou quel mot clé taper sur le forum pour trouver au moins un début de solution !!!
Merci d'avance, à +