includes/functions.php
changeset 332 ec1c93c59c2c
parent 331 f0eee185880a
child 335 59fee40b4644
equal deleted inserted replaced
331:f0eee185880a 332:ec1c93c59c2c
  1931         // echo $i . ' ';
  1931         // echo $i . ' ';
  1932         $chr = $html{$i};
  1932         $chr = $html{$i};
  1933         $prev = ( $i == 0 ) ? '' : $html{ $i - 1 };
  1933         $prev = ( $i == 0 ) ? '' : $html{ $i - 1 };
  1934         $next = ( ( $i + 1 ) == $len ) ? '' : $html { $i + 1 };
  1934         $next = ( ( $i + 1 ) == $len ) ? '' : $html { $i + 1 };
  1935         $tag_name .= $chr;
  1935         $tag_name .= $chr;
  1936         if ( $next == '>' )
  1936         if ( $next == '>' || $i > strlen($html) )
  1937           break;
  1937           break;
  1938       }
  1938       }
  1939       // echo '<br />';
  1939       // echo '<br />';
  1940       if ( in_array($tag_name, $block_tags) )
  1940       if ( in_array($tag_name, $block_tags) )
  1941       {
  1941       {