How i can remove HTML tags

17 vues (au cours des 30 derniers jours)
Chiara Labate
Chiara Labate le 17 Oct 2017
hi all!! I have a piece of an HTML file (it's the description of an app) and i should remove all the tags inside it. How can I do? I try to use 'regexprop' but it doesn't work. it removes only div and /div but the other tags not. Help me pleaseeeee!!

Réponses (1)

Cedric
Cedric le 17 Oct 2017
Modifié(e) : Cedric le 17 Oct 2017
content = regexprep( content, '<.*?>', '' ) ;
EDIT: and the following thread just came back, with Sean mentioning the Text Analytics Toolbox:
  4 commentaires
Cedric
Cedric le 21 Oct 2017
Modifié(e) : Cedric le 21 Oct 2017
Is this answer working for you? If so please [Accept] it. If not, I am happy to provide more information.
Pradeepa Pachalla
Pradeepa Pachalla le 26 Déc 2022
Thankyou Cedric. This is indeed very helpful to me.

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by