Skip to content

Latest commit

 

History

History
234 lines (162 loc) · 2.87 KB

Elements.ru.md

File metadata and controls

234 lines (162 loc) · 2.87 KB

Elements

  • класс Elements (php\jsoup\Elements)
  • исходники php/jsoup/Elements.php

Описание

Class Elements


Методы


Методы

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