Back to Trilium

Interface Root

docs/Script API/interfaces/Backend_Script_API._internal_.Root.html

0.102.27.6 KB
Original Source

Interface Root

interface Root {
contains(container: Element, contained: Element): boolean;
html(options?: CheerioParserOptions): string;
html(
dom: string | Element | Cheerio,
options?: CheerioParserOptions,
): string;
parseHTML(
data: string,
context?: null | Document,
keepScripts?: boolean,
): Document[];
root(): Cheerio;
xml(dom?: string | Element | Cheerio): string;
(selector: string): Cheerio;
(selector: string, context: string): Cheerio;
(selector: string, context: Element): Cheerio;
(selector: string, context: Element[]): Cheerio;
(selector: string, context: Cheerio): Cheerio;
(selector: string, context: string, root: string): Cheerio;
(selector: string, context: Element, root: string): Cheerio;
(selector: string, context: Element[], root: string): Cheerio;
(selector: string, context: Cheerio, root: string): Cheerio;
(selector: any): Cheerio;
}

Hierarchy (View Summary)

Root(selector: string): Cheerio

Parameters

  • selector: string

Returns Cheerio

Root(selector: string, context: string): Cheerio

Parameters

  • selector: string
  • context: string

Returns Cheerio

Root(selector: string, context: Element): Cheerio

Parameters

  • selector: string
  • context: Element

Returns Cheerio

Root(selector: string, context: Element[]): Cheerio

Parameters

  • selector: string
  • context: Element[]

Returns Cheerio

Root(selector: string, context: Cheerio): Cheerio

Parameters

  • selector: string
  • context: Cheerio

Returns Cheerio

Root(selector: string, context: string, root: string): Cheerio

Parameters

  • selector: string
  • context: string
  • root: string

Returns Cheerio

Root(selector: string, context: Element, root: string): Cheerio

Parameters

  • selector: string
  • context: Element
  • root: string

Returns Cheerio

Root(selector: string, context: Element[], root: string): Cheerio

Parameters

  • selector: string
  • context: Element[]
  • root: string

Returns Cheerio

Root(selector: string, context: Cheerio, root: string): Cheerio

Parameters

  • selector: string
  • context: Cheerio
  • root: string

Returns Cheerio

Root(selector: any): Cheerio

Parameters

  • selector: any

Returns Cheerio

Index

Methods

containshtmlparseHTMLrootxml

Methods

contains

contains(container: Element, contained: Element): boolean

Parameters

Returns boolean

html

html(options?: CheerioParserOptions): string

Parameters

Returns string

html(dom: string | Element | Cheerio, options?: CheerioParserOptions): string

Parameters

Returns string

parseHTML

parseHTML(
data: string,
context?: null | Document,
keepScripts?: boolean,
): Document[]

Parameters

  • data: string
  • Optionalcontext: null | Document
  • OptionalkeepScripts: boolean

Returns Document[]

root

root(): Cheerio

Returns Cheerio

xml

xml(dom?: string | Element | Cheerio): string

Parameters

Returns string

Settings

Member Visibility

  • Protected
  • Inherited
  • External

ThemeOSLightDark

On This Page

Methods containshtmlparseHTMLrootxml