BBCode::Internal_ParseEndTagToken()
Description
Source
File: bp-forums/admin/parser.php
2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 | function Internal_ParseEndTagToken() { $tag_params = $this ->lexer->tag; $tag_name = @ $tag_params [ '_name' ]; $contents = $this ->Internal_FinishTag( $tag_name ); if ( $contents === false) { if (@ $this ->lost_start_tags[ $tag_name ] > 0) { $this ->lost_start_tags[ $tag_name ]--; } else { $this ->stack[] = Array( BBCODE_STACK_TOKEN => BBCODE_TEXT, BBCODE_STACK_TEXT => $this ->FixupOutput( $this ->lexer->text), BBCODE_STACK_TAG => false, BBCODE_STACK_CLASS => $this ->current_class, ); } return ; } $start_tag_node = array_pop ( $this ->stack); $start_tag_params = $start_tag_node [BBCODE_STACK_TAG]; $this ->Internal_ComputeCurrentClass(); $this ->Internal_CleanupWSByPoppingStack(@ $this ->tag_rules[ $tag_name ][ 'before_tag' ], $this ->stack); $start_tag_params [ '_endtag' ] = $tag_params [ '_tag' ]; $start_tag_params [ '_hasend' ] = true; $output = $this ->DoTag(BBCODE_OUTPUT, $tag_name , @ $start_tag_params [ '_default' ], $start_tag_params , $contents ); $this ->Internal_CleanupWSByEatingInput(@ $this ->tag_rules[ $tag_name ][ 'after_endtag' ]); $this ->stack[] = Array( BBCODE_STACK_TOKEN => BBCODE_TEXT, BBCODE_STACK_TEXT => $output , BBCODE_STACK_TAG => false, BBCODE_STACK_CLASS => $this ->current_class, ); } |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.