How i can remove HTML tags

8 次查看(过去 30 天)
Chiara Labate
Chiara Labate 2017-10-17
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!!

回答(1 个)

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

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by