How i can remove HTML tags

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!!

Answers (1)

Cedric
Cedric on 17 Oct 2017
Edited: Cedric on 17 Oct 2017
content = regexprep( content, '<.*?>', '' ) ;
EDIT: and the following thread just came back, with Sean mentioning the Text Analytics Toolbox:

4 Comments

Thanks Sean!
Cedric
Cedric on 21 Oct 2017
Edited: Cedric on 21 Oct 2017
Is this answer working for you? If so please [Accept] it. If not, I am happy to provide more information.
Thankyou Cedric. This is indeed very helpful to me.

Sign in to comment.

Categories

Find more on App Building in Help Center and File Exchange

Tags

Asked:

on 17 Oct 2017

Commented:

on 26 Dec 2022

Community Treasure Hunt

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

Start Hunting!