1 | <?php |
||
7 | class CommentPlaceholder implements PlaceholderInterface |
||
8 | { |
||
9 | /** |
||
10 | * Replace critical content with a temp placeholder for integrity. |
||
11 | * |
||
12 | * @param \ArjanSchouten\HtmlMinifier\MinifyContext $context |
||
13 | * |
||
14 | * @return \ArjanSchouten\HtmlMinifier\MinifyContext |
||
15 | */ |
||
16 | 6 | public function process($context) |
|
22 | |||
23 | /** |
||
24 | * Replace CData with a temporary placeholder. |
||
25 | * |
||
26 | * @param string $contents |
||
27 | * @param \ArjanSchouten\HtmlMinifier\PlaceholderContainer $placeholderContainer |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 6 | protected function setCDataPlaceholder($contents, PlaceholderContainer $placeholderContainer) |
|
37 | |||
38 | /** |
||
39 | * Replace conditional placeholders used by Internet Explorer. |
||
40 | * |
||
41 | * @param string $contents |
||
42 | * @param \ArjanSchouten\HtmlMinifier\PlaceholderContainer $placeholderContainer |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | 6 | protected function setConditionalCommentsPlaceholder($contents, PlaceholderContainer $placeholderContainer) |
|
77 | } |
||
78 |