A CakePHP 3 helper to automatically transform styles from <style>
blocks to style=""
attributes. Useful for HTML emails.
Internally uses the library https://github.com/christiaan/InlineStyle
composer require bigfishtv/cakephp-inline-style
For emails:
$email->helpers(['InlineStyle']);
For regular pages. In your App\View\AppView
class:
$this->loadHelper('InlineStyle');