---
Product: Aspose.Cells
Platform: typescript
Page Type: reference
Canonical URL: https://reference.aspose.org/cells/typescript/htmlreader
---

# 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

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `tagName` | `: string` | Read/Write | Gets or sets the tag name. |
| `isStartTag` | `: boolean` | Read/Write | Gets or sets the is start tag. |
| `isEndTag` | `: boolean` | Read/Write | Gets or sets the is end tag. |
| `isSelfClosing` | `: boolean` | Read/Write | Gets or sets the is self closing. |
| `text` | `: string` | Read/Write | Gets or sets the text. |
| `textContent` | `string` | Read | Gets the text content. |

## Methods

| Signature | Description |
|-----------|-------------|
| `constructor(html: string)` | Calls constructor(html) on this HtmlReader instance. |
| `read()` → `boolean` | Calls read on this HtmlReader instance. |
| `getAttribute(name: string)` → `string \| null` | Calls getAttribute(name) on this HtmlReader instance. |
| `getOuterHtml()` → `string` | Returns the outer html. |
| `getInnerHtml()` → `string` | Returns the inner html. |
| `querySelectorAll(selector: string)` → `HtmlReader[]` | Calls querySelectorAll(selector) on this HtmlReader instance. |
| `querySelector(selector: string)` → `HtmlReader \| null` | Calls querySelector(selector) on this HtmlReader instance. |
| `getFullElement()` → `string` | Returns the full element. |
| `getElementsByTagName(tagName: string)` → `HtmlReader[]` | Calls getElementsByTagName(tagName) on this HtmlReader instance. |

## See Also

- [Aspose.Cells — Enterprise API Reference](https://reference.aspose.com/cells/)