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

回答 (1 件)

Cedric
Cedric 2017 年 10 月 17 日
編集済み: Cedric 2017 年 10 月 17 日

3 投票

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

4 件のコメント

Cedric
Cedric 2017 年 10 月 17 日
Thanks Sean!
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.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeApp Building についてさらに検索

タグ

質問済み:

2017 年 10 月 17 日

コメント済み:

2022 年 12 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by