Automattic\WooCommerce\Vendor\Pelago\Emogrifier\HtmlProcessor

AbstractHtmlProcessor::removeSelfClosingTagsClosingTagsprivateWC 1.0

Eliminates any invalid closing tags for void elements from the given HTML.

Method of the class: AbstractHtmlProcessor{}

No Hooks.

Returns

String.

Usage

// private - for code of main (parent) class only
$result = $this->removeSelfClosingTagsClosingTags( $html ): string;
$html(string) (required)
.

AbstractHtmlProcessor::removeSelfClosingTagsClosingTags() code WC 10.4.3

private function removeSelfClosingTagsClosingTags(string $html): string
{
    return (new Preg())->replace('%</' . self::PHP_UNRECOGNIZED_VOID_TAGNAME_MATCHER . '>%', '', $html);
}