emogrifier icon indicating copy to clipboard operation
emogrifier copied to clipboard

Converts CSS styles into inline style attributes in your HTML code.

Results 95 emogrifier issues
Sort by recently updated
recently updated
newest added

https://www.php-fig.org/psr/psr-16/

cleanup

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...

discussion

Given valid HTML5 (according to https://validator.nu/) `CSSInliner` converts `hello world` to `hello world` ```php

bug
hacktoberfest

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...

cleanup
discussion

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...

enhancement
discussion

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

cleanup

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...

enhancement

@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...

cleanup

ref; https://github.com/Masterminds/html5-php