Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Convert html text to plain asci
Message
De
15/02/2022 11:22:34
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01683547
Message ID:
01683572
Vues:
51
>Hi, I have a source string that is html format, but it should be stored and displayed in a regular memo. Therefore I need to convert the html to just plain text. Anybody has done that before? I could probably use Shell.Explorer, but only if I don't find a more straightforward way.

old WebBrowser or InternetExplorer.Application was able to do that, but feeding old dogs new HTML might create own fleas. First option to check for me would be to look at methods implemented on WebView2 (which uses Chromium based Edge to replace WebBrowser functionality for current web sites using Javascript not supported in Trident based WebBrowser) - in MS docs and on Ricks site.... As alternative you could work via Selenium, which offers less methods but more browsers, including Firefox.

HTH
thomas
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform