renderHtmlSnippet()
Overview
public string function renderHtmlSnippet(
required string html
, array styles
)
Method to allow post processing on dynamic email content snippets - i.e. inlining css styles into generated content.
Arguments
Name | Type | Required | Description |
---|---|---|---|
html | string | Yes | HTML to process |
styles | array | No | Array of styles to apply when using emailStyleInliner feature (previously extracted from emailStyleInliner.readStyles( html )) |