CssToInlineStyles icon indicating copy to clipboard operation
CssToInlineStyles copied to clipboard

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very usefull when you're sending emails.

Results 38 CssToInlineStyles issues
Sort by recently updated
recently updated
newest added

https://recordnotfound.com use these class

```php $cssToInlineStyles = new \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles(); $css = '.hi { font-style: bold; }'; $html = ''; echo $cssToInlineStyles->convert($html, $css); ``` Actual: ```html ``` Expected: ```html ```

I'm using CssToInlineStyles to generate a webpage as an email. The email is formatted correctly however it does not display any images. When I preview the same page in a...

Added an empty check in the convert function. If an empty HTML is given an Uncaught TypeError will be throw at $document->removeChild($htmlElement), because $htmlElement is null instead of a DOMNode...

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

MailChimp merge tags use `*|` and `|*` to open and close the tags. When an HTML email is run through the inliner, these come back as `*%7CUNSUB%7C*` https://github.com/tijsverkoyen/CssToInlineStyles/blob/master/example/examples/sumo/index.htm#L6 has an...

Hello guys. For any of you trying to parse site with CSS large enough (1MB+) and not getting any results make sure you set `ini_set('pcre.backtrack_limit', 1000000);` to higher value than...

We have JSON-LD script tags in our emails and they get a `style` attribute added to them, which doesn't make sense. ```html { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type":...

My site uses the PureCSS framework, I use php to `include()` this library inside a block of my html email. At: CssToInlineStyles.php:441 `$css = preg_replace('/@media [^{]*{([^{}]|{[^{}]*})*}/', '', $css);` it's returning...

Any font-family name that needs to be quoted because of being more than one word long gets removed and simply replaced with a quote.