inlineStyles()

Overview

public string function inlineStyles(
      required string html  
    ,          array  styles
)

Receives an html string and returns the same HTML but with all style definitions that reside in style tags converted to inline styles suitable for email sending.

Arguments

NameTypeRequiredDescription
htmlstringYesthe original HTML
stylesarrayNo