HtmlReader
Vue de l’ensemble
HtmlReader est une classe dans Aspose.Cells FOSS pour Typescript.
Cette classe fournit 9 méthodes pour travailler avec des objets HtmlReader dans les programmes Typescript. Les méthodologies disponibles comprennent: constructor, getAttribute , getsElementsByTagName ; ‘getFullElement; 'getInnerHtML : ‘gouterHpml: 'querySelector et ‘querySelektorAll. Tous les membres publics sont accessibles à toute application TypeScript après l'installation de la mise en place d'Aspouse.Cells FOSS pour le package Typscript . Propriétés : isEndTag ou 'SelfClosing ?
Description
HtmlReader est une classe dans la bibliothèque Aspose.Cells FOSS pour TypeScript qui expose 8 méthodes et 6 propriétés pour l’utilisation programmée.
Les fonctionnalités de base comprennent : : string; : boolean ; `. ces opérations permettent aux développeurs d’intégrer la fonctionalité du lecteur html directement dans les applications TypeScript.
La classe fournit également la propriété ’tagName’ (jette le nom de tag), la «isStartTag» (jeette l’étiquette d’origine), et la ‘isEndTag’ (jaette la étique de fin).
Les instances sont créées à travers un constructeur unique qui initialisera l’objet avec des valeurs par défaut.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
tagName | : string | Read | Gets the tag name. |
isStartTag | : boolean | Read | Gets the is start tag. |
isEndTag | : boolean | Read | Gets the is end tag. |
isSelfClosing | : boolean | Read | Gets the is self closing. |
text | : string | Read | Gets the text. |
textContent | string | Read | Gets the text content. |
méthodes
| Signature | Description |
|---|---|
constructor(html: string) | Initializes a new HtmlReader for the given HTML string. |
read() → boolean | Advances to the next token and returns true if a token was read, false at end of input. |
getAttribute(name: string) → `string | null` |
getOuterHtml() → string | Returns the outer html. |
getInnerHtml() → string | Returns the inner html. |
querySelectorAll(selector: string) → HtmlReader[] | Returns all elements matching the given CSS selector. |
querySelector(selector: string) → `HtmlReader | null` |
getFullElement() → string | Returns the full element. |
getElementsByTagName(tagName: string) → HtmlReader[] | Returns all elements with the given tag name. |
Voir aussi
- Aspose.Cells — référence API d’entreprise