Package hudson.plugins.emailext.plugins
Class CssInliner
java.lang.Object
hudson.plugins.emailext.plugins.CssInliner
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
-
Field Details
-
CSS_STYLE
- See Also:
-
STYLE_ATTR
- See Also:
-
STYLE_TAG
- See Also:
-
IMG_TAG
- See Also:
-
IMG_SRC_ATTR
- See Also:
-
DATA_INLINE_ATTR
- See Also:
-
-
Constructor Details
-
CssInliner
public CssInliner()
-
-
Method Details
-
stripHtml
-
process
Takes an input string representing an html document and processes it with the Css Inliner.- Parameters:
input
- the html document- Returns:
- the processed html document
-