Package hudson.plugins.emailext.plugins
Class CssInliner
- java.lang.Object
-
- hudson.plugins.emailext.plugins.CssInliner
-
public class CssInliner extends Object
Inlines CSS to avoid the dreaded GMail Grimace.
The magic keyword is
data-inline="true"
.-
When used in conjunction with the
style
tag, it inlines the stylesheet defined there into all html elements matching the rules. -
When used with the
img
tag, it base64 encodes the image it found to make it visible in the email.
- Author:
- Rahul Somasunderam
-
When used in conjunction with the
-
-
Field Summary
Fields Modifier and Type Field Description static String
CSS_STYLE
static String
DATA_INLINE_ATTR
static String
IMG_SRC_ATTR
static String
IMG_TAG
static String
STYLE_ATTR
static String
STYLE_TAG
-
Constructor Summary
Constructors Constructor Description CssInliner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
process(String input)
Takes an input string representing an html document and processes it with the Css Inliner.String
stripHtml(String input)
-
-
-
Field Detail
-
CSS_STYLE
public static final String CSS_STYLE
- See Also:
- Constant Field Values
-
STYLE_ATTR
public static final String STYLE_ATTR
- See Also:
- Constant Field Values
-
STYLE_TAG
public static final String STYLE_TAG
- See Also:
- Constant Field Values
-
IMG_TAG
public static final String IMG_TAG
- See Also:
- Constant Field Values
-
IMG_SRC_ATTR
public static final String IMG_SRC_ATTR
- See Also:
- Constant Field Values
-
DATA_INLINE_ATTR
public static final String DATA_INLINE_ATTR
- See Also:
- Constant Field Values
-
-