skip_script_data example



            /* * For non-DATA sections which might contain text that looks like HTML tags but * isn't, scan with the appropriate alternative mode. Looking at the first letter * of the tag name as a pre-check avoids a string allocation when it's not needed. */
            $t = $this->html[ $this->tag_name_starts_at ];
            if ( ! $this->is_closing_tag && ( 's' === $t || 'S' === $t || 't' === $t || 'T' === $t ) ) {
                $tag_name = $this->get_tag();

                if ( 'SCRIPT' === $tag_name && ! $this->skip_script_data() ) {
                    $this->bytes_already_parsed = strlen( $this->html );
                    return false;
                } elseif (
                    ( 'TEXTAREA' === $tag_name || 'TITLE' === $tag_name ) &&
                    ! $this->skip_rcdata( $tag_name )
                ) {
                    $this->bytes_already_parsed = strlen( $this->html );
                    return false;
                }
            }
        } while ( $already_found < $this->sought_match_offset );

        
Home | Imprint | This part of the site doesn't use cookies.