src/main/java/org/jsoup/parser/TokenQueue.java
/**
     Consumes to the first sequence provided, or to the end of the queue. Leaves the terminator on the queue.
     @param seq any number of terminators to consume to
     @return consumed string
     */
Consumes to the first sequence provided, or to the end of the queue. Leaves the terminator on the queue.
Consumes to the first sequence provided or to the end of the queue . Leaves the terminator on the queue .
public String consumeToAny(String... seq) {
        StringBuilder accum = new StringBuilder();
        while (!queue.isEmpty() && !matchesAny(seq))
            accum.append(consume());
        return accum.toString();
    }
public String consumeToAny ( String ... seq ) { StringBuilder accum = new StringBuilder ( ) ; while ( ! queue . isEmpty ( ) && ! matchesAny ( seq ) ) accum . append ( consume ( ) ) ; return accum . toString ( ) ; }
Consumes to the first sequence provided, or to the end of the queue.
Consumes to the first sequence provided or to the end of the queue .