Api - XmlTag Class
Hierarchy
- XmlTag
Index
Constructors
Properties
Methods
Constructors
constructor
-
Parameters
-
name: string
Name of the XML tag.
-
Optional attrs: IXmlTagAttrs
Optional attributes for the tag.
Returns XmlTag
-
Properties
Optional attrs
Optional attributes for the tag.
innerText
Text between the opening and closing tags.
innerTextEscaped
Boolean to indicate that the innerText has been escaped.
name
Name of the XML tag.
Methods
getClosingTag
-
Get the closing tag.
Returns string
getInnerText
-
Get the inner text.
Returns string
getOpeningTag
-
Get the opening tag.
Parameters
-
selfClose: boolean
Flag to determine if opening tag should be self closing.
Returns string
-
toString
-
Output the entire tag as a string.
Returns string
Static escapeString
-
Escapes certain characters within a string so that it can appear in a tag or its attribute.
Parameters
-
value: string
Returns string
Escaped string.
-
Generated using TypeDoc
Class for an XML tag.