Is there a non-toolbox alternative for decodeHTMLEntities

조회 수: 1 (최근 30일)
YT
YT 2019년 1월 31일
답변: YT 2019년 2월 1일
I'm scraping data from the web and I noticed that some text contains html entities (& ,   etc.). Now I've found that I could use decodeHTMLEntities, but it requires the Text Analytics Toolbox. Is there also a non-toolbox / free function to decode html entities ?
p.s.
I know I could probably just write my own function to encode/decode it but I dont really want to waste my time doing that.

채택된 답변

YT
YT 2019년 2월 1일
Because of the lack of (quick) responses, I've made my own function which I made available here. It comes with a file called entities.mat, which contains the characters and corresponding html entities.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by