..
protected static createDocumentWrapper ( unknown_type $html, $contentType = null, $documentID = null ) : unknown | ||
$html | unknown_type | |
리턴 | unknown | New DOM ID |
/** * Creates new document from markup. * Chainable. * * @param unknown_type $markup * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery */ public static function newDocument($markup = null, $contentType = null) { if (!$markup) { $markup = ''; } $documentID = phpQuery::createDocumentWrapper($markup, $contentType); return new phpQueryObject($documentID); }
/** * Creates new document from markup. * Chainable. * * @param unknown_type $markup * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery */ public static function newDocument($markup = null, $contentType = null) { if (!$markup) { $markup = ''; } $markup = preg_replace('/[\\x00-\\x1F\\x7F]/', '', $markup); $documentID = phpQuery::createDocumentWrapper($markup, $contentType); return new phpQueryObject($documentID); }