' ) && strpos( $badStr, '?'.'>', strpos( $badStr, '<'.'?' ) ) > strpos( $badStr, '<'.'?' ) ) { // $badStr = substr( $badStr, 0, strpos( $badStr, '<'.'?' ) ) . substr( $badStr, strpos( $badStr, '?'.'>', strpos( $badStr, '<'.'?' ) ) + 2 ); // } // Moodle //remove comments while ( substr_count( $badStr, '' ) && strpos( $badStr, '-->', strpos( $badStr, '', strpos( $badStr, '