emogrifier
emogrifier copied to clipboard
Converts CSS styles into inline style attributes in your HTML code.
@zoliszabo, @JakeQZ, I propose we deprecated this option and instead add a method `removeAllStyleAttributes` or `removeInlineStyles` to the `HtmlPruner` class (which then can be used before `CssInliner` gets used). What...
Emogrifier may produce inline styles that are redundant. For example: ```html p {margin: 10px 0} p.c {margin-left: 5px; margin-right: 5px} ``` After the above is emogrified, it would look like...
We should have automated tests that Emogrifier understands the CSS selectors in popular CSS frameworks. According to https://hackernoon.com/top-5-most-popular-css-frameworks-that-you-should-pay-attention-to-in-2017-344a8b67fba1, https://three29.com/best-css-frameworks-2017/ and https://www.sitepoint.com/5-most-popular-frontend-frameworks-compared/, these are: - Twitter Bootstrap (3x) - Zurb Foundation...
Outlook doesn't properly support the "margin" tag in css, however there is a workaround and that is to use "Margin" (note the capital M). This also affects "margin-top", "margin-left" etc....
https://github.com/phpstan/phpstan https://blog.martinhujer.cz/how-to-configure-phpstan-for-symfony-applications/
Arising from #831 is the handling of Boolean vs non-Boolean attributes by the Emogrifier package when parsing and serializing HTML, with respect to the empty attribute syntax. The empty attribute...
I've a found a problem in the last version. Actually I'm passing a text for an email and a CSS file to it so that it get's inlined. The problem...
https://github.com/tijsverkoyen/CssToInlineStyles has a list of sites using their library in their README. Should we have a list like that as well? (I'd like that.) Which sites should/can we add?
My table like that : `` are converted to : `` I use this to set the css and html : ```php $emogrifier = new \Pelago\Emogrifier(); $emogrifier->setHtml($html); $emogrifier->setCss($css); $emogrifier->enableCssToHtmlMapping(); $emogrifier->disableStyleBlocksParsing();...