CssToInlineStyles
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.
I know this wouldn't be possible for :before or :after, but what about selecting `ul li:first` to set the top margin to zero?
https://developer.mozilla.org/en-US/docs/Web/CSS/var()
#### Motivation This library fails to parse documents with high nesting levels. Use of `LIBXML_PARSEHUGE` is required in such cases. Resolves another unmerged PR https://github.com/tijsverkoyen/CssToInlineStyles/pull/204 Closes https://github.com/tijsverkoyen/CssToInlineStyles/issues/200
Closes #214
`documentElement` on the `DOMDocument` class can be either `DocumentElement|null` as noted at https://www.php.net/manual/en/class.domdocument.php https://github.com/tijsverkoyen/CssToInlineStyles/blob/f4f37098456b0801ee1de84214bbc83078ae3c63/src/CssToInlineStyles.php#L137 doesn't correctly handle when `documentElement` returns `NULL` resulting in: ```console Argument 1 passed to DOMNode::removeChild() must...
css media queries were filtered out (which makes sense as they're not supported as inline style), now that more and more clients support style tags in the head it makes...
In my case of use I have to set e.g. `text-decoration` property twice to make it correct in all target supported mail clients. It means my links have `text-decoration: none;...
Relates to https://github.com/tijsverkoyen/CssToInlineStyles/pull/164 At the moment the below contents of the style are removed due to the HTML comment. This structure is common in received emails. ```html ``` > when...
This PR adds optional usage of `masterminds/html5` similar to the implementation in `symfony/dom-crawler`. This resolves some quirks when saving HTML documents with `DOMDocument` for example an anchor wrapping a table...
Hi! We've been using your package for quite a while and we really enjoy it. Today we tried to handle an excessive piece of HTML code and the import of...