You appear to be a bot. Output may be restricted
Description
Makes sure that any self-closing tags not recognized as such by PHP's DOMDocument implementation have a self-closing slash.
Usage
$string = AbstractHtmlProcessor::ensurePhpUnrecognizedSelfClosingTagsAreXml( $html );
Parameters
- $html
- ( string ) required –
Returns
string HTML with problematic tags converted.
Source
File name: woocommerce/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor/AbstractHtmlProcessor.php
Lines:
1 to 9 of 9
private function ensurePhpUnrecognizedSelfClosingTagsAreXml($html) { return \preg_replace( '%<' . static::PHP_UNRECOGNIZED_VOID_TAGNAME_MATCHER . '\\b[^>]*+(?<!/)(?=>)%', '$0/', $html ); }