Skip to content

Files

Latest commit

614e444 · May 1, 2018

History

History
234 lines (162 loc) · 2.83 KB

File metadata and controls

234 lines (162 loc) · 2.83 KB

Elements

  • class Elements (php\jsoup\Elements)
  • source php/jsoup/Elements.php

Description

Class Elements


Methods


Methods

text()

text(): string

hasText()

hasText(): bool

html()

html(string $html): string

outerHtml()

outerHtml(): string

attr()

attr(string $attributeKey, mixed $value): string|$this

hasAttr()

hasAttr(string $attributeKey): bool

removeAttr()

removeAttr(string $attributeKey): Elements

addClass()

addClass(string $class): Elements

removeClass()

removeClass(string $class): Elements

hasClass()

hasClass(string $class): bool

toggleClass()

toggleClass(string $class): bool

val()

val(string $value): $this

prepend()

prepend(string $html): Elements

append()

append(string $html): Elements

before()

before(string $html): Elements

after()

after(string $html): Elements

select()

select(string $query): Elements

first()

first(): Element

last()

last(): Element

not()

not(string $query): Elements

is()

is(string $query): bool

parents()

parents(): Elements