phpToMarkup() public static method

public static phpToMarkup ( $php, $charset = 'utf-8' )
 /**
  * Creates new document from markup.
  * Chainable.
  *
  * @param unknown_type $markup
  * @return phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery
  */
 public static function newDocumentPHP($markup = null, $contentType = "text/html")
 {
     // TODO pass charset to phpToMarkup if possible (use DOMDocumentWrapper function)
     $markup = phpQuery::phpToMarkup($markup, self::$defaultCharset);
     return self::newDocument($markup, $contentType);
 }
 public static function newDocumentPHP($markup = null, $contentType = "text/html;charset=utf-8")
 {
     $markup = phpQuery::phpToMarkup($markup);
     return self::newDocument($markup, $contentType);
 }