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

NameTypeRequiredDescription
htmlstringYesHTML to process
stylesarrayNoArray of styles to apply when using emailStyleInliner feature (previously extracted from emailStyleInliner.readStyles( html ))