src/lib/Parser.js
/**
  Consumes a reference in a content context if possible.

  This differs from `consumeReference()` in that a consumed reference will be
  added to the document as a text node instead of returned.

  @returns {boolean}
    Whether a reference was consumed.

  @see https://www.w3.org/TR/2008/REC-xml-20081126/#entproc
  */
Consumes a reference in a content context if possible.
This differs from `consumeReference()` in that a consumed reference will be
added to the document as a text node instead of returned.
Consumes a reference in a content context if possible . This differs from ` consumeReference () ` in that a consumed reference will be added to the document as a text node instead of returned .
consumeContentReference() {
    let ref = this.consumeReference();
    if (ref) {
      this.addText(ref);
      return true;
    }
    return false;
  }
consumeContentReference ( ) { let ref = this . consumeReference ( ) ; if ( ref ) { this . addText ( ref ) ; return true ; } return false ; }
Consumes a reference in a content context if possible.
Consumes a reference in a content context if possible .