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

How do I output completely plain text? #92

Open
beppe9000 opened this issue Nov 14, 2018 · 3 comments
Open

How do I output completely plain text? #92

beppe9000 opened this issue Nov 14, 2018 · 3 comments

Comments

@beppe9000
Copy link

beppe9000 commented Nov 14, 2018

From what I understand this library may convert several elements to a markdown-style syntax.
I would like to only output the textual content of the HTML string.
Any pointers? I saw there are 'options' for the class constructor but i found no documentation about that.

@nejib1
Copy link

nejib1 commented Jan 11, 2019

Add parameter array('do_links' => 'none'), like this :

$html = new \Html2Text\Html2Text($html, array('do_links' => 'none'));

@YuvrajHinger
Copy link

YuvrajHinger commented Sep 7, 2020

`<i` class="anyclass"></i> replace with _ 
`Same` with <hr> `tags`

How to ignore that ?

@seb303
Copy link

seb303 commented Feb 20, 2024

Added 'plain_text' option....
#122

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

4 participants