User Tools

Site Tools


Sidebar

token:token_getendtoken

token_getEndToken()

Function 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 .getEndToken()

Usage

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

Parameters

Parameter Data type Required Description
token Token object true The token to get the end token of

Return Values

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