CssToInlineStyles alternatives and similar libraries
Based on the "Email" category.
Alternatively, view CssToInlineStyles alternatives based on common mentions on social networks and blogs.
4.1 0.0 L4 CssToInlineStyles VS omnimailSend email across all platforms using one interface
2.8 0.0 L2 CssToInlineStyles VS phpListThis module is the core of phpList 4. Join discussion at the community forum: https://discuss.phplist.org/
:envelope: E-Mail Address Validator (syntax, dns, trash, typo)
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of CssToInlineStyles or a related project?
CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.
The recommended installation way is through Composer.
$ composer require tijsverkoyen/css-to-inline-styles
use TijsVerkoyen\CssToInlineStyles\CssToInlineStyles; // create instance $cssToInlineStyles = new CssToInlineStyles(); $html = file_get_contents(__DIR__ . '/examples/sumo/index.htm'); $css = file_get_contents(__DIR__ . '/examples/sumo/style.css'); // output echo $cssToInlineStyles->convert( $html, $css );
- no support for pseudo selectors
- no support for css-escapes
- UTF-8 charset is not always detected correctly. Make sure you set the charset to UTF-8 using the following meta-tag in the head:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />. (Note: using
<meta charset="UTF-8">does NOT work!)