You appear to be a bot. Output may be restricted
Description
Makes sure that the passed HTML has a document type.
Usage
$string = AbstractHtmlProcessor::ensureDocumentType( $html );
Parameters
- $html
- ( string ) required –
Returns
string HTML with document type
Source
File name: woocommerce/vendor/pelago/emogrifier/src/Emogrifier/HtmlProcessor/AbstractHtmlProcessor.php
Lines:
1 to 10 of 10
private function ensureDocumentType($html) { $hasDocumentType = \stripos($html, '<!DOCTYPE') !== false; if ($hasDocumentType) { return $html; } return static::DEFAULT_DOCUMENT_TYPE . $html; }