endOffset

The offset into associated ContentBlock's textContent, describing the end of the mark.

You can get the text for a mark using:

contentBlock.getTextContent().slice(mark.startOffset, mark.endOffset)