Drupal\helper\Html
Provides helpers for working with HTML.
Methods
Name | Description |
---|---|
removeComments | Remove HTML comments from a string. |
Html::removeComments
Description
public static removeComments (mixed $markup)
Remove HTML comments from a string.
Parameters
(mixed) $markup
: The markup.
Return Values
string|null
The markup without HTML comments as a string.