Automattic\WooCommerce\EmailEditor\Integrations\Utils

Html_Processing_Helper::get_safe_css_propertiespublic staticWC 1.0

Get list of safe CSS properties for typography and basic styling.

Method of the class: Html_Processing_Helper{}

No Hooks.

Returns

Array. Array of safe CSS property names.

Usage

$result = Html_Processing_Helper::get_safe_css_properties(): array;

Html_Processing_Helper::get_safe_css_properties() code WC 10.4.3

public static function get_safe_css_properties(): array {
	return array(
		'color',
		'background-color',
		'font-family',
		'font-size',
		'font-weight',
		'font-style',
		'text-decoration',
		'text-align',
		'line-height',
		'letter-spacing',
		'text-transform',
	);
}