You are here

protected function MinifyHTMLExit::minifyhtmlPlaceholderCallbackIframe in Minify Source HTML 8

Helper function to add place holder for <iframe> tag.

Parameters

array $matches: Matches from initial preg_replace().

Return value

string The placeholder string.

File

src/EventSubscriber/MinifyHTMLExit.php, line 229

Class

MinifyHTMLExit
Minifies the HTML of the response.

Namespace

Drupal\minifyhtml\EventSubscriber

Code

protected function minifyhtmlPlaceholderCallbackIframe(array $matches) {
  $iframe = preg_replace('/^\\s+|\\s+$/m', '', $matches[0]);
  return $this
    ->minifyPlaceholderReplace(trim($iframe));
}