Get all element attributes
HTML selector
Optional
nextGet next sibling
Optional
previousGet previous sibling
Get the combined text contents of each element in the set of matched elements, including their descendants
HTML selector
Extract value from first found element by provided selector
HTML selector
Optional
extraFilters: Record<string, Filter>el.extract('.content @ attrs.data-summary | trim | uppercase')
el.extract('.content @ attrs.data-summary | myCallback | uppercase', {
myCallback(value) {
return typeof value === 'string' ? value.trim() : value
}
})
custom filters
Extract value by provided selector
HTML selector
Optional
extraFilters: Record<string, Filter>el.extractAll('.content @ attrs.data-summary | trim | uppercase')
el.extractAll('.content @ attrs.data-summary | myCallback | uppercase', {
myCallback(value) {
return typeof value === 'string' ? value.trim() : value
}
})
custom filters
Find one HTML element by provided HTML Selector
HTML selector
Find all HTML elements by provided HTML Selector
HTML selector
Generated using TypeDoc
Structure representing one HTML element