HtmlReader

Overview

HtmlReader is a class in Aspose.Cells FOSS for TypeScript.

This class declares 9 methods for HtmlReader objects in TypeScript programs. Available methods include: constructor, getAttribute, getElementsByTagName, getFullElement, getInnerHtml, getOuterHtml, querySelector, querySelectorAll, read. Public members are accessible to any TypeScript application after installing the Aspose.Cells FOSS for TypeScript package. Properties: isEndTag, isSelfClosing, isStartTag, tagName, text, textContent.

Properties

NameTypeAccessDescription
tagName: stringRead/WriteGets or sets the tag name.
isStartTag: booleanRead/WriteGets or sets the is start tag.
isEndTag: booleanRead/WriteGets or sets the is end tag.
isSelfClosing: booleanRead/WriteGets or sets the is self closing.
text: stringRead/WriteGets or sets the text.
textContentstringReadGets the text content.

Methods

SignatureDescription
constructor(html: string)Calls constructor(html) on this HtmlReader instance.
read()booleanCalls read on this HtmlReader instance.
getAttribute(name: string)string | nullCalls getAttribute(name) on this HtmlReader instance.
getOuterHtml()stringReturns the outer html.
getInnerHtml()stringReturns the inner html.
querySelectorAll(selector: string)HtmlReader[]Calls querySelectorAll(selector) on this HtmlReader instance.
querySelector(selector: string)HtmlReader | nullCalls querySelector(selector) on this HtmlReader instance.
getFullElement()stringReturns the full element.
getElementsByTagName(tagName: string)HtmlReader[]Calls getElementsByTagName(tagName) on this HtmlReader instance.

See Also

 English