8 – Get paragraph field in a specific text format

I have a landing page with a list of paragraphs. I’m trying to render the main body paragraph field as a summary to use in a metatag in the header.



    'value' => "<p><span><span><span><span><span><span>Some rich text here.</span></span></span></span></span></span><span",
    'format' => "basic_html"

How can I return this field as a teaser view, or more appropriately, a summary of just the text?