Elements¶
-
php\jsoup\Elements
abstract class
implements: Iterator
Methods
text
()¶
Returns: string
hasText
()¶
Returns: bool
html
($html)¶
Parameters:
- $html – string - (optional)
Returns: string
outerHtml
()¶
Returns: string
attr
($attributeKey, $value)¶
Parameters:
- $attributeKey – string
- $value –
- (optional)
Returns: string, php\jsoup\$this
hasAttr
($attributeKey)¶
Parameters:
- $attributeKey – string
Returns: bool
removeAttr
($attributeKey)¶
Parameters:
- $attributeKey – string
Returns:
addClass
($class)¶
Parameters:
- $class – string
Returns:
removeClass
($class)¶
Parameters:
- $class – string
Returns:
hasClass
($class)¶
Parameters:
- $class – string
Returns: bool
toggleClass
($class)¶
Parameters:
- $class – string
Returns: bool
val
($value)¶
Parameters:
- $value – string - (optional)
Returns: php\jsoup\$this
prepend
($html)¶
Parameters:
- $html – string
Returns:
append
($html)¶
Parameters:
- $html – string
Returns:
before
($html)¶
Parameters:
- $html – string
Returns:
after
($html)¶
Parameters:
- $html – string
Returns:
select
($query)¶
Parameters:
- $query – string
Returns:
first
()¶
Returns: php\jsoup\Element
last
()¶
Returns: php\jsoup\Element
not
($query)¶
Parameters:
- $query – string
Returns:
is
($query)¶
Parameters:
- $query – string
Returns: bool
parents
()¶
Returns: php\jsoup\Elements