PHP 클래스 Essence\Dom\Document\Native

상속: extends Essence\Dom\Document
파일 보기 프로젝트 열기: benjamminf/craft-embedded-assets

보호된 프로퍼티들

프로퍼티 타입 설명
$_Document DOMDocument DOM document.

공개 메소드들

메소드 설명
__construct ( $html ) {@inheritDoc}
tags ( $name, Closure $filter = null ) {@inheritDoc}

보호된 메소드들

메소드 설명
_fixCharset ( ) If necessary, fixes the given HTML's charset to work with the current version of Libxml (used by DOMDocument).
_loadDocument ( ) Builds a DOMDocument from the HTML source.

메소드 상세

__construct() 공개 메소드

{@inheritDoc}
public __construct ( $html )

_fixCharset() 보호된 메소드

Older versions of Libxml only recognizes: and not the new HTML5 form: with the result that parsed strings can have funny characters.
또한 보기: http://www.glenscott.co.uk/blog/html5-character-encodings-and-domdocument-loadhtml-and-loadhtmlfile
또한 보기: https://github.com/glenscott/dom-document-charset/blob/master/DOMDocumentCharset.php
protected _fixCharset ( )

_loadDocument() 보호된 메소드

Builds a DOMDocument from the HTML source.
protected _loadDocument ( )

tags() 공개 메소드

{@inheritDoc}
public tags ( $name, Closure $filter = null )
$filter Closure

프로퍼티 상세

$_Document 보호되어 있는 프로퍼티

DOM document.
protected DOMDocument $_Document
리턴 DOMDocument