User Tools

Site Tools




Method to get the closing tag of a HTML or XML element. The script will cycle through the file to find the corresponding end tag. Nested tags are supported. This method is the equivalent of the function token_getEndToken()


if(token.isTag("p")) {
   var endParagraph = token.getEndToken();


This method does not have any parameters.

Return Values

Value String Value
false Could not find the end token
Token object The end token of the token
token/getendtoken.txt · Last modified: 2017/06/03 14:05 (external edit)