The Tag object represents the immutablearrow-up-right opening and closing tag.
Tag
closingTag
Gets the closing tag of a generic type ClosingTag.
ClosingTag
name
Gets the tag name without the wrap by using an intuitive property name.
openingTag
Gets the opening tag of a generic type OpeningTag.
OpeningTag
tag
Gets the tag of a string type by using an intuitive property name.
string
wrap
Gets the wrap of tag name.
value
Gets the tag of a string type by using a general property name.
isTag()
The static method checks whether the provided value of any type is an instance of Tag.
getClosingTag()
Gets the closing tag of a specified Tag object.
getName()
Gets the tag name without the opening and closing char.
getOpeningTag()
Gets the opening tag of the specified Tag object.
getWrap()
Gets the wrap of a tag name.
replaceTag()
The method replaces the tag of a specified Tag object with the provided replaceValue in the given text if both values are strings.
replaceValue
text
tagText()
The method tags the provided text with the opening and closing tag.
valueOf()
Returns tag name, a primitive value of the specified Tag object.
Last updated 4 years ago