Commit 83728fb
Email Editor: Integrate the convert class from the HTML to Text library (woocommerce#59859)
* # This is a combination of 5 commits.
# This is the 1st commit message:
Email Editor: Integrate the convert class from the HTML to Text library and remove the dependency.
# This is the commit message #2:
Fix linting errors.
# This is the commit message #3:
Fix more linting errors.
# This is the commit message #4:
Fix package linting errors.
# This is the commit message woocommerce#5:
Fix additional package linting errors.
* Email Editor: Integrate HTML to Text library and remove external dependency
- Internalized soundasleep/html2text functionality
- Added Html2Text and Html2Text_Exception classes
- Updated composer.json to remove dependency
- Fixed all PHPStan and WordPress coding standards violations
- Ensured PHP 7.4+ compatibility and standalone package support
* Fix potential security issues with exceptions.
* Ignore error_logs since they're for security purposes.
* Remove unused .
* Email editor: Add unit and integration tests for html2text, and remove unnecessary import.
* Fix PHP and linter issues.
* Attempt to keep the tests happy while fixing the PHPStan error.
* Change from double quotes to single quotes.
* Add changefile(s) from automation for the following project(s): packages/php/email-editor
* Add security information to package
* Add copyright and license headers to new files
* Add package license
- GPLv2 or later
- Also incorporates work with different copyright and license.
Internal reference:
p2y3YZ-9Ry-p2#comment-22676
* Add new licensing / security reporting policy
* Add 2 new files to mirror repo as well
---------
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>1 parent e34929d commit 83728fb
12 files changed
Lines changed: 1546 additions & 64 deletions
File tree
- packages/php/email-editor
- changelog
- src/Engine/Renderer
- tasks
- tests
- integration/Engine/Renderer
- unit/Engine/Renderer
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments