Element

php\jsoup\Element

abstract class

Methods


html($html)
Parameters:
  • $htmlstring - (optional)
Returns:

string

text()
Returns:string
nodeName()
Returns:string
tagName($tagName)
Parameters:
  • $tagNamestring - (optional)
Returns:

string

isBlock()
Returns:bool
id()
Returns:string
attr($attributeKey, $attributeValue)
Parameters:
  • $attributeKey
  • $attributeValue
    • (optional)
Returns:

php\jsoup\$this

dataset()
Returns:array
parent()
Returns:php\jsoup\Element
parents()
Returns:php\jsoup\Elements
child($index)
Parameters:
  • $indexint
Returns:

php\jsoup\Element

children()
Returns:php\jsoup\Elements
select($cssQuery)
Parameters:
  • $cssQuerystring
Returns:

php\jsoup\Elements