Function spanToPlainText

  • Returns the plain-text representation of a toolkit-specific Portable Text span.

    Useful if you have a subset of nested nodes and want the text from just those, instead of for the entire Portable Text block.

    Parameters

    Returns string

    The plain-text version of the span