You are here

function MCAPI::inlineCss in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::inlineCss()
  2. 5 MCAPI.class.php \MCAPI::inlineCss()
  3. 6.2 MCAPI.class.php \MCAPI::inlineCss()
  4. 6 MCAPI.class.php \MCAPI::inlineCss()

Send your HTML content to have the CSS inlined and optionally remove the original styles.

@section Helper @example xml-rpc_inlineCss.php

Parameters

string $html Your HTML content:

bool $strip_css optional Whether you want the CSS <style> tags stripped from the returned document. Defaults to false.:

Return value

string Your HTML content with all CSS inlined, just like if we sent it.

File

./MCAPI.class.php, line 1464

Class

MCAPI

Code

function inlineCss($html, $strip_css = false) {
  $params = array();
  $params["html"] = $html;
  $params["strip_css"] = $strip_css;
  return $this
    ->callServer("inlineCss", $params);
}