public function openlayers_views_plugin_style_source_vector::minify_remove_html_comment in Openlayers 7.3
Remove HTML comments (not containing IE conditional comments).
Borrowed from the Minify module. @link https://www.drupal.org/project/minify
See also
openlayers_views_plugin_style_source_vector::minify_data()
File
- modules/
openlayers_views/ views/ openlayers_views_plugin_style_source_vector.inc, line 387 - Style handler that provides vector features.
Class
- openlayers_views_plugin_style_source_vector
- Class openlayers_views_plugin_style_source_vector.
Code
public function minify_remove_html_comment($string) {
return 0 === strpos($string[1], '[') || FALSE !== strpos($string[1], '<![') ? $string[0] : '';
}