Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to strip text inside html tags #142

Closed
Tratoschek opened this issue Sep 5, 2016 · 2 comments
Closed

Add an option to strip text inside html tags #142

Tratoschek opened this issue Sep 5, 2016 · 2 comments

Comments

@Tratoschek
Copy link

It would be nice, if you could add an option to strip text inside html tags. Sometimes poorly formatted webpages provide such text.

  • Version by pyhtml2text --version: pyhtml2text 2016.5.29
  • Test script
>>> import html2text
>>> html2text.html2text('<b>text </b>')
'**text **\n\n'

Much better would be '**text**\n\n'

  • Python version python --version: Python 3.4.3
@theSage21
Copy link
Collaborator

This seems reasonable. I'll get to it in a while if that's ok. In case you want to you could submit a PR for this.

@jonathan-s
Copy link
Contributor

Fixed by #177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants