The DOMText class
(PHP 5, PHP 7, PHP 8)
簡介
The DOMText class inherits from DOMCharacterData and represents the textual content of a DOMElement or DOMAttr.
類摘要
class DOMText
extends
DOMCharacterData
{
/* 屬性 */
/* 繼承的屬性 */
/* 方法 */
/* 繼承的方法 */
public DOMNode::C14N(
bool
bool
?array
?array
): string|false
bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): string|false
public DOMNode::C14NFile(
string
bool
bool
?array
?array
): int|false
}string
$uri
,bool
$exclusive
= false
,bool
$withComments
= false
,?array
$xpath
= null
,?array
$nsPrefixes
= null
): int|false
屬性
- wholeText
-
Holds all the text of logically-adjacent (not separated by Element, Comment or Processing Instruction) Text nodes.
更新日誌
版本 | 說明 |
---|---|
8.0.0 | The unimplemented method DOMText::replaceWholeText() has been removed. |
目錄
- DOMText::__construct — Creates a new DOMText object
- DOMText::isElementContentWhitespace — Returns whether this text node contains whitespace in element content
- DOMText::isWhitespaceInElementContent — Indicates whether this text node contains whitespace
- DOMText::splitText — Breaks this node into two nodes at the specified offset