Maker.js, a Microsoft Garage project, is a JavaScript library for creating and sharing modular line drawings for CNC and laser cutters.

View project on GitHub Star

Api - XmlTag Class

Class for an XML tag.

Hierarchy

  • XmlTag

Index

Constructors

constructor

Properties

Optional attrs

Optional attributes for the tag.

Optional closingTags

closingTags: boolean

Flag to explicitly close XML tags.

innerText

innerText: string

Text between the opening and closing tags.

innerTextEscaped

innerTextEscaped: boolean

Boolean to indicate that the innerText has been escaped.

name

name: string

Name of the XML tag.

Methods

getClosingTag

  • getClosingTag(): string

getInnerText

  • getInnerText(): string

getOpeningTag

  • getOpeningTag(selfClose: boolean): string
  • Get the opening tag.

    Parameters

    • selfClose: boolean

      Flag to determine if opening tag should be self closing.

    Returns string

toString

  • toString(): string
  • Output the entire tag as a string.

    Returns string

Static escapeString

  • escapeString(value: string): string
  • Escapes certain characters within a string so that it can appear in a tag or its attribute.

    Parameters

    • value: string

    Returns string

    Escaped string.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc