emogrifier
emogrifier copied to clipboard
Converts CSS styles into inline style attributes in your HTML code.
In addition to the small architectural problems (`CssInliner` is too big and does too much, arrays and `stdClass` instead of dedicated classes), I currently see two big problems I'd like...
Given valid HTML5 (according to https://validator.nu/) `CSSInliner` converts `hello world` to `hello world` ```php
We currently mostly have 2 spaces indentation, e.g. in bulleted lists in `CHANGELOG.md` and `README.md`. But we have 4 spaces indentation specified in `.editorconfig` for `.md` files. We should either...
Since `CssInliner` has to be created by passing html to `::fromHtml` it can not be **passed as a dependency**. Current version 3.0.0 in a PSR-7/PSR-15 example: ```php use Psr\Http\Message\ResponseInterface; use...
We should move the CSS parsing either to a separate class or use an existing package for this, e.g. one of these: - https://packagist.org/packages/sabberworm/php-css-parser - https://packagist.org/packages/soloproyectos-php/css-parser
Emogrifier does a good job cleaning up the styles but this makes it impossible to add fixes for quirks in email readers that intend to modify known classes that the...
@vanderlee Would you be willing to provide a performance testcase for this with some (bigger) real-world-like data?
When we need the function to throw an exception if a problem has occurred, we can use those. https://github.com/thecodingmachine/safe This should make it easier for use to make the static...
ref; https://github.com/Masterminds/html5-php