cs_aloisio11
Messages postés126Date d'inscriptionlundi 18 septembre 2006StatutMembreDernière intervention 7 décembre 2009
-
9 janv. 2009 à 09:24
cs_aloisio11
Messages postés126Date d'inscriptionlundi 18 septembre 2006StatutMembreDernière intervention 7 décembre 2009
-
9 janv. 2009 à 11:59
Bonjour à tous,
J'ai une variable contenant du code HTML et je voudrait en extraire seulement le texte qui est censé être affiché.
Y a t il quelque chose qui fait cela ?
J'espère que j'ai été clair dans mon explication ...
vRes = ""
vInBalise = false
For vCpt = 1 to Len(pTexte)
if Mid(pTexte, vCpt, 1) <> "<" and Mid(pTexte, vCpt, 1) <> ">" and not vInBalise then
vRes = vRes & Mid(pTexte, vCpt, 1)
end if
if Mid(pTexte, vCpt, 1) = "<" and Not vInBalise then
vInBalise = true
else
if Mid(pTexte, vCpt, 1) = ">" and vInBalise then
vInBalise = false
end if
end if
Next