ContentRenderer
1 month ago
class-html2text-exception.php
10 months ago
class-html2text.php
10 months ago
class-renderer.php
1 month ago
interface-css-inliner.php
1 year ago
template-canvas.css
1 month ago
template-canvas.php
1 month ago
interface-css-inliner.php
36 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This file is part of the WooCommerce Email Editor package. |
| 4 | * |
| 5 | * @package Automattic\WooCommerce\EmailEditor |
| 6 | */ |
| 7 | |
| 8 | namespace Automattic\WooCommerce\EmailEditor\Engine\Renderer; |
| 9 | |
| 10 | interface Css_Inliner { |
| 11 | /** |
| 12 | * Builds a new instance from the given HTML. |
| 13 | * |
| 14 | * @param string $unprocessed_html raw HTML, must be UTF-encoded, must not be empty. |
| 15 | * |
| 16 | * @return static |
| 17 | */ |
| 18 | public function from_html( string $unprocessed_html ): self; |
| 19 | |
| 20 | /** |
| 21 | * Inlines the given CSS into the existing HTML. |
| 22 | * |
| 23 | * @param string $css the CSS to inline, must be UTF-8-encoded. |
| 24 | * |
| 25 | * @return $this |
| 26 | */ |
| 27 | public function inline_css( string $css = '' ): self; |
| 28 | |
| 29 | /** |
| 30 | * Renders the normalized and processed HTML. |
| 31 | * |
| 32 | * @return string |
| 33 | */ |
| 34 | public function render(): string; |
| 35 | } |
| 36 |