HtmlReader

HtmlReader

Przegląd

HtmlReader jest klasą w Aspose.Cells FOSS dla TypeScript.

Ta klasa deklaruje 9 metod dla obiektów HtmlReader w programach TypeScript. Dostępne metody obejmują: constructor, getAttribute, getElementsByTagName, getFullElement, getInnerHtml, getOuterHtml, querySelector, querySelectorAll, read. Publiczne elementy są dostępne dla każdej aplikacji TypeScript po zainstalowaniu pakietu Aspose.Cells FOSS dla TypeScript. Właściwości: isEndTag, isSelfClosing, isStartTag, tagName, text, textContent.

Właściwości

NazwaTypDostępOpis
tagName: stringOdczyt/zapisPobiera lub ustawia nazwę tagu.
isStartTag: booleanOdczyt/zapisPobiera lub ustawia, czy jest tagiem początkowym.
isEndTag: booleanOdczyt/zapisPobiera lub ustawia, czy jest tagiem końcowym.
isSelfClosing: booleanOdczyt/zapisPobiera lub ustawia, czy jest samodzielnie zamykany.
text: stringOdczyt/zapisPobiera lub ustawia tekst.
textContentstringOdczytPobiera zawartość tekstową.

Metody

SygnaturaOpis
constructor(html: string)Wywołuje konstruktor(html) na tej instancji HtmlReader.
read() → booleanWywołuje metodę read na tej instancji HtmlReader.
getAttribute(name: string) → `stringnull`
getOuterHtml() → stringZwraca zewnętrzny HTML.
getInnerHtml() → stringZwraca wewnętrzny HTML.
querySelectorAll(selector: string) → HtmlReader[]Wywołuje querySelectorAll(selector) na tej instancji HtmlReader.
querySelector(selector: string) → `HtmlReadernull`
getFullElement() → stringZwraca pełny element.
getElementsByTagName(tagName: string) → HtmlReader[]Wywołuje getElementsByTagName(tagName) na tej instancji HtmlReader.

Zobacz także

 Polski