You are currently browsing
the website for symfony 1
This symfony plugin contains the skInlineCSS class, which takes an HTML document and CSS, and moves all the CSS properties into inline
style attributes on the relevant elements.
We use this plugin to move styles inline for HTML emails.
CSS can either be contained in
<style /> or linked to in
<link rel="stylesheet" /> elements within the HTML, or can be passed in separately.
<?php $c = new skInlineCSS(array(/* options */)); echo $c->convert($html, $css);
For more detail, see the docblocks in
skInlineCSSPlugin by Studio Skylab
This code is released under the Creative Commons Attribution-ShareAlike 3.0 License.
Original CssToInlineStyles License ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright©, Tijs Verkoyen. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
This software is provided by the copyright holders and contributors as is and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
Original Prototype.js License ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright (c) 2005-2008 Sam Stephenson
Portions of the Selector class in Prototype.js are derived from Jack Slocum's DomQuery, part of YUI-Ext version 0.40, distributed under the terms of an MIT-style license. Please see http://www.yui-ext.com/ for more information.
Go to the repository: https://github.com/studioskylab/skInlineCSSPlugin