How i can remove HTML tags

15 visualizaciones (últimos 30 días)
Chiara Labate
Chiara Labate el 17 de Oct. de 2017
Comentada: Pradeepa Pachalla el 26 de Dic. de 2022
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!!

Respuestas (1)

Cedric
Cedric el 17 de Oct. de 2017
Editada: Cedric el 17 de Oct. de 2017
content = regexprep( content, '<.*?>', '' ) ;
EDIT: and the following thread just came back, with Sean mentioning the Text Analytics Toolbox:
  4 comentarios
Cedric
Cedric el 21 de Oct. de 2017
Editada: Cedric el 21 de Oct. de 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 el 26 de Dic. de 2022
Thankyou Cedric. This is indeed very helpful to me.

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by