Question sur Sytem.Net.Webclient()
Bonjour,
je me sert du code suivant pour mettre mes informations d'une page php sur ma form1 mais je me pose une question.
Il est possible d'enlever le code Html quand on l'affiche sur la form ?
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
Private Function Serveur01(ByVal url) As Boolean
Try
Dim AdrSite As String
AdrSite = url
Dim WebClient As New System.Net.WebClient()
Dim Sr As New System.IO.StreamReader(WebClient.OpenRead(AdrSite), System.Text.Encoding.Default)
Dim PageHtml As String = Sr.ReadToEnd()
Sr.Dispose()
Sr = Nothing
WebClient.Dispose()
WebClient = Nothing
Label13.Text = PageHtml
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Function |
Savez vous si il y a une option pour viré les balises html <b> <br> etc... au moment de l'affichage ?
Cordialement,