Skip to content

Html

Provides helpers for working with HTML.


  • Full name: \Drupal\helper\Html

Methods

removeComments

Remove HTML comments from a string.

public static removeComments(mixed $markup): string|null
  • This method is static. Parameters:
Parameter Type Description
$markup mixed
The markup.

Return Value:

The markup without HTML comments as a string.