AbstractHtmlProcessor::removeSelfClosingTagsClosingTags() – Eliminates any invalid closing tags for void elements from the given HTML.

You appear to be a bot. Output may be restricted

Description

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

Usage

$string = AbstractHtmlProcessor::removeSelfClosingTagsClosingTags( $html );

Parameters

$html
( string ) required

Returns

string

Source

File name: woocommerce/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor/AbstractHtmlProcessor.php


Lines:

1 to 5 of 5
    private function removeSelfClosingTagsClosingTags($html)
    {
        return \preg_replace('%</' . static::PHP_UNRECOGNIZED_VOID_TAGNAME_MATCHER . '>%', '', $html);
    }
 

 View on GitHub View on Trac