How i can remove HTML tags

조회 수: 13 (최근 30일)
Chiara Labate
Chiara Labate 2017년 10월 17일
댓글: Pradeepa Pachalla 2022년 12월 26일
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에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by