public interface

HtmlCssInliner

com.atlassian.bitbucket.mail.HtmlCssInliner

Class Overview

HtmlCssInliner inlines CSS from plugin modules into HTML.

Summary

Public Methods
@Nonnull String inlineCss(String html, String cssModuleKey)
Inline CSS referred to by the given complete module key into a given String of HTML.

Public Methods

@Nonnull public String inlineCss (String html, String cssModuleKey)

Inline CSS referred to by the given complete module key into a given String of HTML. This will include any CSS resource descriptors referred to in the module's dependency tree.

Parameters
html HTML to perform CSS inlining on
cssModuleKey Complete module key for plugin module that has CSS script resources and/or dependencies
Returns
  • HTML with CSS inlined.