Alir3z4 / html2text

Convert HTML to Markdown-formatted text.
alir3z4.github.io/html2text/
GNU General Public License v3.0
1.81k stars 272 forks source link

How can I only get the text without herf links - Ignore all of text which have links #323

Open RachelLYY opened 4 years ago

RachelLYY commented 4 years ago
jeremydouglass commented 4 years ago

What are herf links?

RachelLYY commented 4 years ago

What are herf links?

批注 2020-05-21 145039

Just like this. I don't want to get the “生活” text in the "font" tag under the "a" tag.

jeremydouglass commented 4 years ago

Ah, href, not herf. The 'ref' part is for "reference". Not sure why I didn't get it -- but you might want to fix the typo in your title.

RachelLYY commented 4 years ago

Ah, href, not herf. The 'ref' part is for "reference". Not sure why I didn't get it -- but you might want to fix the typo in your title.

Okkk. Thanks.

smjonas commented 2 years ago

You can use ignore_anchors = True