You are here

function minifyhtml_placeholder_callback_iframe in Minify Source HTML 7

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

Parameters

array $matches: Matches from initial preg_replace().

Return value

string The placeholder string.

File

./minifyhtml.module, line 261
Hook and helper functions for the Minify HTML module.

Code

function minifyhtml_placeholder_callback_iframe(array $matches) {
  $iframe = preg_replace('/^\\s+|\\s+$/m', '', $matches[0]);
  return minifyhtml_placeholder_replace(trim($iframe));
}