-
-
Notifications
You must be signed in to change notification settings - Fork 557
Introduce an html to text facility #4077
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
Conversation
Hi @mondrake thanks for the PR. When I execute
I have the library installed.
Do you know what it can be? |
The class is missing from the autoloader map, maybe you git cloned it instead of indtalling via composer? Try composer require html2text/html2text |
I can't solve the issue, I installed the dependency on my drupal and now it work, but it is no the right way. |
@mondrake could you help us with this, to see if we could include in next week release 1.9.1? Thanks in advance |
@enzolutions @harold20 sure! What is exactly the problem here? Sorry but I can not understand. |
@enzolutions @harold20 I have rebased and pushed my branch, now all checks on TravisCI are passing. What else you need? |
@enzolutions @harold20 now, after #4136 and #4137, you can see in the TravisCI logs the effect of this PR on the |
Drupal outputs HTML text in some cases, which is not fit to present in a CLI environment (example, in site:status and site:install). In Drupal console there are places where
strip_tags
andhtml_entity_decode
are used to clean up a bit, but any formatting and links are lost.I suggest to add a dependency to html2text/html2text and build a facility service to help converting HTML strings to a prettier text.
Example 1: site:install error message
before
after
Example 2: site:status (verbose)
before
after