File

src/elements/textitem/nodes.ts

Description

A dynamic node represents a variable piece of text, as the result of evaluating an expression. Because the origin of an expression's result is unknown, this data is considered XSS unsafe and must always be escaped.

Implements

TextItemNode

Index

Properties
Methods

Constructor

constructor(values: string[])
Parameters :
Name Type Optional
values string[] No

Properties

Public Readonly values
Type : string[]

Methods

filter
filter(style: string)
Parameters :
Name Type Optional
style string No
Returns : StyleNode[]
find
find(style: string)
Parameters :
Name Type Optional
style string No
Returns : undefined
toPlainText
toPlainText(options?: literal type)
Parameters :
Name Type Optional
options literal type Yes
Returns : string
visit
visit(visitor: TextItemNodeVisitor<T | R>, context: T)
Type parameters :
  • T
  • R
Parameters :
Name Type Optional
visitor TextItemNodeVisitor<T | R> No
context T No
Returns : R

results matching ""

    No results matching ""