BBCode::Internal_FinishTag( $tag_name )
Description
Source
File: bp-forums/admin/parser.php
1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 | function Internal_FinishTag( $tag_name ) { if ( strlen ( $tag_name ) <= 0) return false; if (isset( $this ->start_tags[ $tag_name ]) && count ( $this ->start_tags[ $tag_name ])) $pos = array_pop ( $this ->start_tags[ $tag_name ]); else $pos = -1; if ( $pos < 0) return false; $newpos = $this ->Internal_CleanupWSByIteratingPointer(@ $this ->tag_rules[ $tag_name ][ 'after_tag' ], $pos +1, $this ->stack); $delta = $newpos - ( $pos +1); $output = $this ->Internal_GenerateOutput( $newpos ); $newend = $this ->Internal_CleanupWSByIteratingPointer(@ $this ->tag_rules[ $tag_name ][ 'before_endtag' ], 0, $output ); $output = $this ->Internal_CollectTextReverse( $output , count ( $output ) - 1, $newend ); while ( $delta -- > 0) array_pop ( $this ->stack); $this ->Internal_ComputeCurrentClass(); return $output ; } |
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.